Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: content/shell/browser/shell_devtools_manager_delegate.h

Issue 2300703005: DevTools: merge devtools_http_handler into content - it is used in all the embedders anyways. (Closed)
Patch Set: for_landing! Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/devtools_http_handler/devtools_http_handler_delegate.h"
11 #include "content/public/browser/devtools_manager_delegate.h" 10 #include "content/public/browser/devtools_manager_delegate.h"
12 11
13 namespace devtools_http_handler {
14 class DevToolsHttpHandler;
15 }
16
17 namespace content { 12 namespace content {
18 13
19 class BrowserContext; 14 class BrowserContext;
20 15
21 class ShellDevToolsManagerDelegate : public DevToolsManagerDelegate { 16 class ShellDevToolsManagerDelegate : public DevToolsManagerDelegate {
22 public: 17 public:
23 static devtools_http_handler::DevToolsHttpHandler* CreateHttpHandler( 18 static void StartHttpHandler(BrowserContext* browser_context);
24 BrowserContext* browser_context); 19 static void StopHttpHandler();
25 20
26 explicit ShellDevToolsManagerDelegate(BrowserContext* browser_context); 21 explicit ShellDevToolsManagerDelegate(BrowserContext* browser_context);
27 ~ShellDevToolsManagerDelegate() override; 22 ~ShellDevToolsManagerDelegate() override;
28 23
29 // DevToolsManagerDelegate implementation. 24 // DevToolsManagerDelegate implementation.
30 void Inspect(DevToolsAgentHost* agent_host) override {} 25 void Inspect(DevToolsAgentHost* agent_host) override {}
31 void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, 26 void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host,
32 bool attached) override {} 27 bool attached) override {}
33 base::DictionaryValue* HandleCommand(DevToolsAgentHost* agent_host,
34 base::DictionaryValue* command) override;
35 std::string GetTargetType(RenderFrameHost* host) override;
36 std::string GetTargetTitle(RenderFrameHost* host) override;
37 scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) override; 28 scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) override;
29 std::string GetDiscoveryPageHTML() override;
30 std::string GetFrontendResource(const std::string& path) override;
38 31
39 private: 32 private:
40 BrowserContext* browser_context_; 33 BrowserContext* browser_context_;
41 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate); 34 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate);
42 }; 35 };
43 36
44 } // namespace content 37 } // namespace content
45 38
46 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_ 39 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_devtools_frontend.cc ('k') | content/shell/browser/shell_devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698