Chromium Code Reviews| Index: content/browser/devtools/render_frame_devtools_agent_host.h |
| diff --git a/content/browser/devtools/render_frame_devtools_agent_host.h b/content/browser/devtools/render_frame_devtools_agent_host.h |
| index f190d4cf862a202f095c284e6bed6bbb09351fe7..e00e22e4e5e022d1f73e4f2660b6ddcb40e5db3d 100644 |
| --- a/content/browser/devtools/render_frame_devtools_agent_host.h |
| +++ b/content/browser/devtools/render_frame_devtools_agent_host.h |
| @@ -55,6 +55,7 @@ class CONTENT_EXPORT RenderFrameDevToolsAgentHost |
| RenderFrameHost* current); |
| static void OnBeforeNavigation(RenderFrameHost* current, |
| RenderFrameHost* pending); |
| + static void OnBeforeNavigation(NavigationHandle* navigation_handle); |
|
dgozman
2016/02/24 19:05:45
I don't really like this. We hoped to move away fr
clamy
2016/02/25 14:24:15
The content policy is not to add methods to the co
|
| void SynchronousSwapCompositorFrame( |
| const cc::CompositorFrameMetadata& frame_metadata); |
| @@ -90,7 +91,6 @@ class CONTENT_EXPORT RenderFrameDevToolsAgentHost |
| void InspectElement(int x, int y) override; |
| // WebContentsObserver overrides. |
| - void DidStartNavigation(NavigationHandle* navigation_handle) override; |
| void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; |
| void DidFinishNavigation(NavigationHandle* navigation_handle) override; |
| void RenderFrameHostChanged(RenderFrameHost* old_host, |
| @@ -116,6 +116,7 @@ class CONTENT_EXPORT RenderFrameDevToolsAgentHost |
| void AboutToNavigateRenderFrame(RenderFrameHost* old_host, |
| RenderFrameHost* new_host); |
| + void WillStartRequest(NavigationHandle* navigation_handle); |
|
dgozman
2016/02/24 19:05:45
This is a strange name. Perhaps, |AboutToNavigate|
clamy
2016/02/25 14:24:15
Done.
|
| void DispatchBufferedProtocolMessagesIfNecessary(); |
| @@ -137,8 +138,6 @@ class CONTENT_EXPORT RenderFrameDevToolsAgentHost |
| void OnRequestNewWindow(RenderFrameHost* sender, int new_routing_id); |
| void DestroyOnRenderFrameGone(); |
| - bool MatchesMyTreeNode(NavigationHandle* navigation_handle); |
| - |
| class FrameHostHolder; |
| scoped_ptr<FrameHostHolder> current_; |
| @@ -170,9 +169,8 @@ class CONTENT_EXPORT RenderFrameDevToolsAgentHost |
| // Handle that caused the setting of pending_. |
| NavigationHandle* pending_handle_; |
| - // Navigation counter and queue for buffering protocol messages during a |
| - // navigation. |
| - int in_navigation_; |
| + // List of handles currently navigating. |
| + std::set<NavigationHandle*> navigating_handles_; |
| // <call_id> -> <session_id, message> |
| std::map<int, std::pair<int, std::string>> |