| 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 18 matching lines...) Expand all Loading... |
| 29 } // namespace device | 29 } // namespace device |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 | 33 |
| 34 class BrowserContext; | 34 class BrowserContext; |
| 35 class DevToolsFrameTraceRecorder; | 35 class DevToolsFrameTraceRecorder; |
| 36 class DevToolsProtocolHandler; | 36 class DevToolsProtocolHandler; |
| 37 class FrameTreeNode; | 37 class FrameTreeNode; |
| 38 class NavigationHandle; | 38 class NavigationHandle; |
| 39 class NavigationThrottle; |
| 39 class RenderFrameHostImpl; | 40 class RenderFrameHostImpl; |
| 40 | 41 |
| 41 namespace devtools { | 42 namespace devtools { |
| 42 namespace browser { class BrowserHandler; } | 43 namespace browser { class BrowserHandler; } |
| 43 namespace dom { class DOMHandler; } | 44 namespace dom { class DOMHandler; } |
| 44 namespace emulation { class EmulationHandler; } | 45 namespace emulation { class EmulationHandler; } |
| 45 namespace input { class InputHandler; } | 46 namespace input { class InputHandler; } |
| 46 namespace inspector { class InspectorHandler; } | 47 namespace inspector { class InspectorHandler; } |
| 47 namespace io { class IOHandler; } | 48 namespace io { class IOHandler; } |
| 48 namespace network { class NetworkHandler; } | 49 namespace network { class NetworkHandler; } |
| 49 namespace page { class PageHandler; } | 50 namespace page { class PageHandler; } |
| 50 namespace security { class SecurityHandler; } | 51 namespace security { class SecurityHandler; } |
| 51 namespace service_worker { class ServiceWorkerHandler; } | 52 namespace service_worker { class ServiceWorkerHandler; } |
| 52 namespace storage { class StorageHandler; } | 53 namespace storage { class StorageHandler; } |
| 53 namespace tracing { class TracingHandler; } | 54 namespace tracing { class TracingHandler; } |
| 54 } | 55 } |
| 55 | 56 |
| 56 class CONTENT_EXPORT RenderFrameDevToolsAgentHost | 57 class CONTENT_EXPORT RenderFrameDevToolsAgentHost |
| 57 : public DevToolsAgentHostImpl, | 58 : public DevToolsAgentHostImpl, |
| 58 private WebContentsObserver { | 59 private WebContentsObserver { |
| 59 public: | 60 public: |
| 60 static void AddAllAgentHosts(DevToolsAgentHost::List* result); | 61 static void AddAllAgentHosts(DevToolsAgentHost::List* result); |
| 61 | 62 |
| 62 static void OnCancelPendingNavigation(RenderFrameHost* pending, | 63 static void OnCancelPendingNavigation(RenderFrameHost* pending, |
| 63 RenderFrameHost* current); | 64 RenderFrameHost* current); |
| 64 static void OnBeforeNavigation(RenderFrameHost* current, | 65 static void OnBeforeNavigation(RenderFrameHost* current, |
| 65 RenderFrameHost* pending); | 66 RenderFrameHost* pending); |
| 66 static void OnBeforeNavigation(NavigationHandle* navigation_handle); | 67 static void OnBeforeNavigation(NavigationHandle* navigation_handle); |
| 68 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( |
| 69 NavigationHandle* navigation_handle); |
| 67 | 70 |
| 68 void SynchronousSwapCompositorFrame( | 71 void SynchronousSwapCompositorFrame( |
| 69 cc::CompositorFrameMetadata frame_metadata); | 72 cc::CompositorFrameMetadata frame_metadata); |
| 70 | 73 |
| 71 bool HasRenderFrameHost(RenderFrameHost* host); | 74 bool HasRenderFrameHost(RenderFrameHost* host); |
| 72 | 75 |
| 73 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 76 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
| 74 | 77 |
| 75 // DevTooolsAgentHost overrides. | 78 // DevTooolsAgentHost overrides. |
| 76 void DisconnectWebContents() override; | 79 void DisconnectWebContents() override; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 200 |
| 198 // The FrameTreeNode associated with this agent. | 201 // The FrameTreeNode associated with this agent. |
| 199 FrameTreeNode* frame_tree_node_; | 202 FrameTreeNode* frame_tree_node_; |
| 200 | 203 |
| 201 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); | 204 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); |
| 202 }; | 205 }; |
| 203 | 206 |
| 204 } // namespace content | 207 } // namespace content |
| 205 | 208 |
| 206 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 209 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |