OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 DevToolsManagerImpl(); | 45 DevToolsManagerImpl(); |
46 virtual ~DevToolsManagerImpl(); | 46 virtual ~DevToolsManagerImpl(); |
47 | 47 |
48 // Opens the inspector for |agent_host|. | 48 // Opens the inspector for |agent_host|. |
49 void Inspect(BrowserContext* browser_context, DevToolsAgentHost* agent_host); | 49 void Inspect(BrowserContext* browser_context, DevToolsAgentHost* agent_host); |
50 | 50 |
51 void DispatchOnInspectorFrontend(DevToolsAgentHost* agent_host, | 51 void DispatchOnInspectorFrontend(DevToolsAgentHost* agent_host, |
52 const std::string& message); | 52 const std::string& message); |
53 | 53 |
| 54 DevToolsManagerDelegate* delegate() const { return delegate_.get(); } |
| 55 |
54 // DevToolsManager implementation | 56 // DevToolsManager implementation |
55 virtual bool DispatchOnInspectorBackend(DevToolsClientHost* from, | 57 virtual bool DispatchOnInspectorBackend(DevToolsClientHost* from, |
56 const std::string& message) OVERRIDE; | 58 const std::string& message) OVERRIDE; |
57 virtual void CloseAllClientHosts() OVERRIDE; | 59 virtual void CloseAllClientHosts() OVERRIDE; |
58 virtual DevToolsAgentHost* GetDevToolsAgentHostFor( | 60 virtual DevToolsAgentHost* GetDevToolsAgentHostFor( |
59 DevToolsClientHost* client_host) OVERRIDE; | 61 DevToolsClientHost* client_host) OVERRIDE; |
60 virtual void RegisterDevToolsClientHostFor( | 62 virtual void RegisterDevToolsClientHostFor( |
61 DevToolsAgentHost* agent_host, | 63 DevToolsAgentHost* agent_host, |
62 DevToolsClientHost* client_host) OVERRIDE; | 64 DevToolsClientHost* client_host) OVERRIDE; |
63 virtual void ClientHostClosing(DevToolsClientHost* host) OVERRIDE; | 65 virtual void ClientHostClosing(DevToolsClientHost* host) OVERRIDE; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 CallbackContainer callbacks_; | 104 CallbackContainer callbacks_; |
103 | 105 |
104 scoped_ptr<DevToolsManagerDelegate> delegate_; | 106 scoped_ptr<DevToolsManagerDelegate> delegate_; |
105 | 107 |
106 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerImpl); | 108 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerImpl); |
107 }; | 109 }; |
108 | 110 |
109 } // namespace content | 111 } // namespace content |
110 | 112 |
111 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ | 113 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ |
OLD | NEW |