| 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..844485fe592ebb039b2210815aa3335507e27eda 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);
|
|
|
| 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 AboutToNavigate(NavigationHandle* navigation_handle);
|
|
|
| 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>>
|
|
|