• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CEF_LIBCEF_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_DELEGATE_H_
7 
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/devtools_manager_delegate.h"
10 
11 namespace content {
12 class BrowserContext;
13 }
14 
15 class CefDevToolsManagerDelegate : public content::DevToolsManagerDelegate {
16  public:
17   static void StartHttpHandler(content::BrowserContext* browser_context);
18   static void StopHttpHandler();
19 
20   CefDevToolsManagerDelegate();
21 
22   CefDevToolsManagerDelegate(const CefDevToolsManagerDelegate&) = delete;
23   CefDevToolsManagerDelegate& operator=(const CefDevToolsManagerDelegate&) =
24       delete;
25 
26   ~CefDevToolsManagerDelegate() override;
27 
28   // DevToolsManagerDelegate implementation.
29   scoped_refptr<content::DevToolsAgentHost> CreateNewTarget(
30       const GURL& url) override;
31   std::string GetDiscoveryPageHTML() override;
32   bool HasBundledFrontendResources() override;
33 };
34 
35 #endif  // CEF_LIBCEF_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_DELEGATE_H_
36