| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void CloseWindow(RenderViewHost* client_rvn); | 64 void CloseWindow(RenderViewHost* client_rvn); |
| 65 void RequestDockWindow(RenderViewHost* client_rvn); | 65 void RequestDockWindow(RenderViewHost* client_rvn); |
| 66 void RequestUndockWindow(RenderViewHost* client_rvn); | 66 void RequestUndockWindow(RenderViewHost* client_rvn); |
| 67 | 67 |
| 68 void OpenDevToolsWindow(RenderViewHost* inspected_rvh); | 68 void OpenDevToolsWindow(RenderViewHost* inspected_rvh); |
| 69 void ToggleDevToolsWindow(RenderViewHost* inspected_rvh, | 69 void ToggleDevToolsWindow(RenderViewHost* inspected_rvh, |
| 70 DevToolsToggleAction action); | 70 DevToolsToggleAction action); |
| 71 void RuntimePropertyChanged(RenderViewHost* inspected_rvh, | 71 void RuntimePropertyChanged(RenderViewHost* inspected_rvh, |
| 72 const std::string& name, | 72 const std::string& name, |
| 73 const std::string& value); | 73 const std::string& value); |
| 74 void ClearBrowserCache(RenderViewHost* inspected_rvh); |
| 75 void ClearBrowserCookies(RenderViewHost* inspected_rvh); |
| 74 | 76 |
| 75 // Starts element inspection in the devtools client. | 77 // Starts element inspection in the devtools client. |
| 76 // Creates one by means of OpenDevToolsWindow if no client | 78 // Creates one by means of OpenDevToolsWindow if no client |
| 77 // exists. | 79 // exists. |
| 78 void InspectElement(RenderViewHost* inspected_rvh, int x, int y); | 80 void InspectElement(RenderViewHost* inspected_rvh, int x, int y); |
| 79 | 81 |
| 80 // Sends 'Attach' message to the agent using |dest_rvh| in case | 82 // Sends 'Attach' message to the agent using |dest_rvh| in case |
| 81 // there is a DevToolsClientHost registered for the |inspected_rvh|. | 83 // there is a DevToolsClientHost registered for the |inspected_rvh|. |
| 82 void OnNavigatingToPendingEntry(RenderViewHost* inspected_rvh, | 84 void OnNavigatingToPendingEntry(RenderViewHost* inspected_rvh, |
| 83 RenderViewHost* dest_rvh, | 85 RenderViewHost* dest_rvh, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 OrphanClientHosts; | 166 OrphanClientHosts; |
| 165 OrphanClientHosts orphan_client_hosts_; | 167 OrphanClientHosts orphan_client_hosts_; |
| 166 int last_orphan_cookie_; | 168 int last_orphan_cookie_; |
| 167 | 169 |
| 168 NotificationRegistrar registrar_; | 170 NotificationRegistrar registrar_; |
| 169 | 171 |
| 170 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 172 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
| 171 }; | 173 }; |
| 172 | 174 |
| 173 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 175 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |