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 "base/macros.h" 10 #include "content/public/browser/devtools_manager_delegate.h" 11 12 namespace content { 13 class BrowserContext; 14 } 15 16 class CefDevToolsManagerDelegate : public content::DevToolsManagerDelegate { 17 public: 18 static void StartHttpHandler(content::BrowserContext* browser_context); 19 static void StopHttpHandler(); 20 21 CefDevToolsManagerDelegate(); 22 ~CefDevToolsManagerDelegate() override; 23 24 // DevToolsManagerDelegate implementation. 25 scoped_refptr<content::DevToolsAgentHost> CreateNewTarget( 26 const GURL& url) override; 27 std::string GetDiscoveryPageHTML() override; 28 bool HasBundledFrontendResources() override; 29 30 private: 31 DISALLOW_COPY_AND_ASSIGN(CefDevToolsManagerDelegate); 32 }; 33 34 #endif // CEF_LIBCEF_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_DELEGATE_H_ 35