OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEBUGGER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 virtual ~DevToolsManager(); | 92 virtual ~DevToolsManager(); |
93 | 93 |
94 // DevToolsClientHost::CloseListener override. | 94 // DevToolsClientHost::CloseListener override. |
95 // This method will remove all references from the manager to the | 95 // This method will remove all references from the manager to the |
96 // DevToolsClientHost and unregister all listeners related to the | 96 // DevToolsClientHost and unregister all listeners related to the |
97 // DevToolsClientHost. | 97 // DevToolsClientHost. |
98 virtual void ClientHostClosing(DevToolsClientHost* host); | 98 virtual void ClientHostClosing(DevToolsClientHost* host); |
99 | 99 |
100 // Overridden from NotificationObserver: | 100 // Overridden from NotificationObserver: |
101 virtual void Observe(NotificationType type, | 101 virtual void Observe(int type, |
102 const NotificationSource& source, | 102 const NotificationSource& source, |
103 const NotificationDetails& details); | 103 const NotificationDetails& details); |
104 | 104 |
105 // Returns RenderViewHost for the tab that is inspected by devtools | 105 // Returns RenderViewHost for the tab that is inspected by devtools |
106 // client hosted by DevToolsClientHost. | 106 // client hosted by DevToolsClientHost. |
107 RenderViewHost* GetInspectedRenderViewHost(DevToolsClientHost* client_host); | 107 RenderViewHost* GetInspectedRenderViewHost(DevToolsClientHost* client_host); |
108 | 108 |
109 void SendAttachToAgent(RenderViewHost* inspected_rvh); | 109 void SendAttachToAgent(RenderViewHost* inspected_rvh); |
110 void SendDetachToAgent(RenderViewHost* inspected_rvh); | 110 void SendDetachToAgent(RenderViewHost* inspected_rvh); |
111 | 111 |
(...skipping 27 matching lines...) Expand all Loading... |
139 OrphanClientHosts; | 139 OrphanClientHosts; |
140 OrphanClientHosts orphan_client_hosts_; | 140 OrphanClientHosts orphan_client_hosts_; |
141 int last_orphan_cookie_; | 141 int last_orphan_cookie_; |
142 | 142 |
143 NotificationRegistrar registrar_; | 143 NotificationRegistrar registrar_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 145 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
146 }; | 146 }; |
147 | 147 |
148 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 148 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
OLD | NEW |