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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const IPC::Message& message); | 53 const IPC::Message& message); |
54 | 54 |
55 void SaveAgentRuntimeState(DevToolsAgentHost* agent_host, | 55 void SaveAgentRuntimeState(DevToolsAgentHost* agent_host, |
56 const std::string& state); | 56 const std::string& state); |
57 | 57 |
58 // Sends 'Attach' message to the agent using |dest_rvh| in case | 58 // Sends 'Attach' message to the agent using |dest_rvh| in case |
59 // there is a DevToolsClientHost registered for the |inspected_rvh|. | 59 // there is a DevToolsClientHost registered for the |inspected_rvh|. |
60 void OnNavigatingToPendingEntry(RenderViewHost* inspected_rvh, | 60 void OnNavigatingToPendingEntry(RenderViewHost* inspected_rvh, |
61 RenderViewHost* dest_rvh, | 61 RenderViewHost* dest_rvh, |
62 const GURL& gurl); | 62 const GURL& gurl); |
| 63 void OnCancelPendingNavigation(RenderViewHost* pending, |
| 64 RenderViewHost* current); |
63 | 65 |
64 // Invoked when a tab is replaced by another tab. This is triggered by | 66 // Invoked when a tab is replaced by another tab. This is triggered by |
65 // TabStripModel::ReplaceTabContentsAt. | 67 // TabStripModel::ReplaceTabContentsAt. |
66 void TabReplaced(TabContents* old_tab, TabContents* new_tab); | 68 void TabReplaced(TabContents* old_tab, TabContents* new_tab); |
67 | 69 |
68 // Detaches client host and returns cookie that can be used in | 70 // Detaches client host and returns cookie that can be used in |
69 // AttachClientHost. | 71 // AttachClientHost. |
70 int DetachClientHost(RenderViewHost* from_rvh); | 72 int DetachClientHost(RenderViewHost* from_rvh); |
71 | 73 |
72 // Attaches orphan client host to new render view host. | 74 // Attaches orphan client host to new render view host. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 123 |
122 typedef std::map<int, std::pair<DevToolsClientHost*, std::string> > | 124 typedef std::map<int, std::pair<DevToolsClientHost*, std::string> > |
123 OrphanClientHosts; | 125 OrphanClientHosts; |
124 OrphanClientHosts orphan_client_hosts_; | 126 OrphanClientHosts orphan_client_hosts_; |
125 int last_orphan_cookie_; | 127 int last_orphan_cookie_; |
126 | 128 |
127 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); | 129 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); |
128 }; | 130 }; |
129 | 131 |
130 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ | 132 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ |
OLD | NEW |