| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 static void AddAllAgentHosts(DevToolsAgentHost::List* result); | 63 static void AddAllAgentHosts(DevToolsAgentHost::List* result); |
| 64 | 64 |
| 65 static void OnCancelPendingNavigation(RenderFrameHost* pending, | 65 static void OnCancelPendingNavigation(RenderFrameHost* pending, |
| 66 RenderFrameHost* current); | 66 RenderFrameHost* current); |
| 67 static void OnBeforeNavigation(RenderFrameHost* current, | 67 static void OnBeforeNavigation(RenderFrameHost* current, |
| 68 RenderFrameHost* pending); | 68 RenderFrameHost* pending); |
| 69 static void OnBeforeNavigation(NavigationHandle* navigation_handle); | 69 static void OnBeforeNavigation(NavigationHandle* navigation_handle); |
| 70 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( | 70 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( |
| 71 NavigationHandle* navigation_handle); | 71 NavigationHandle* navigation_handle); |
| 72 | 72 |
| 73 static void WebContentsCreated(WebContents* web_contents); |
| 74 |
| 73 void SynchronousSwapCompositorFrame( | 75 void SynchronousSwapCompositorFrame( |
| 74 cc::CompositorFrameMetadata frame_metadata); | 76 cc::CompositorFrameMetadata frame_metadata); |
| 75 | 77 |
| 76 bool HasRenderFrameHost(RenderFrameHost* host); | 78 bool HasRenderFrameHost(RenderFrameHost* host); |
| 77 | 79 |
| 78 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 80 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
| 79 | 81 |
| 80 // DevTooolsAgentHost overrides. | 82 // DevTooolsAgentHost overrides. |
| 81 void DisconnectWebContents() override; | 83 void DisconnectWebContents() override; |
| 82 void ConnectWebContents(WebContents* web_contents) override; | 84 void ConnectWebContents(WebContents* web_contents) override; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 218 |
| 217 // The FrameTreeNode associated with this agent. | 219 // The FrameTreeNode associated with this agent. |
| 218 FrameTreeNode* frame_tree_node_; | 220 FrameTreeNode* frame_tree_node_; |
| 219 | 221 |
| 220 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); | 222 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); |
| 221 }; | 223 }; |
| 222 | 224 |
| 223 } // namespace content | 225 } // namespace content |
| 224 | 226 |
| 225 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 227 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |