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 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/browser/devtools/devtools_agent_host_impl.h" | 14 #include "content/browser/devtools/devtools_agent_host_impl.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
17 | 17 |
18 #if defined(OS_ANDROID) | 18 #if defined(OS_ANDROID) |
19 #include "ui/android/view_android.h" | 19 #include "ui/android/view_android.h" |
20 #endif // OS_ANDROID | 20 #endif // OS_ANDROID |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 class CompositorFrameMetadata; | 23 class CompositorFrameMetadata; |
24 } | 24 } |
25 | 25 |
26 #if defined(OS_ANDROID) | |
27 namespace device { | |
28 class PowerSaveBlockerImpl; | |
29 } // namespace device | |
30 #endif | |
31 | |
32 namespace content { | 26 namespace content { |
33 | 27 |
34 class BrowserContext; | 28 class BrowserContext; |
35 class DevToolsFrameTraceRecorder; | 29 class DevToolsFrameTraceRecorder; |
36 class DevToolsProtocolHandler; | 30 class DevToolsProtocolHandler; |
37 class FrameTreeNode; | 31 class FrameTreeNode; |
38 class NavigationHandle; | 32 class NavigationHandle; |
39 class RenderFrameHostImpl; | 33 class RenderFrameHostImpl; |
40 | 34 |
| 35 #if defined(OS_ANDROID) |
| 36 class PowerSaveBlockerImpl; |
| 37 #endif |
| 38 |
41 namespace devtools { | 39 namespace devtools { |
42 namespace browser { class BrowserHandler; } | 40 namespace browser { class BrowserHandler; } |
43 namespace dom { class DOMHandler; } | 41 namespace dom { class DOMHandler; } |
44 namespace emulation { class EmulationHandler; } | 42 namespace emulation { class EmulationHandler; } |
45 namespace input { class InputHandler; } | 43 namespace input { class InputHandler; } |
46 namespace inspector { class InspectorHandler; } | 44 namespace inspector { class InspectorHandler; } |
47 namespace io { class IOHandler; } | 45 namespace io { class IOHandler; } |
48 namespace network { class NetworkHandler; } | 46 namespace network { class NetworkHandler; } |
49 namespace page { class PageHandler; } | 47 namespace page { class PageHandler; } |
50 namespace security { class SecurityHandler; } | 48 namespace security { class SecurityHandler; } |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 std::unique_ptr<devtools::page::PageHandler> page_handler_; | 164 std::unique_ptr<devtools::page::PageHandler> page_handler_; |
167 std::unique_ptr<devtools::security::SecurityHandler> security_handler_; | 165 std::unique_ptr<devtools::security::SecurityHandler> security_handler_; |
168 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler> | 166 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler> |
169 service_worker_handler_; | 167 service_worker_handler_; |
170 std::unique_ptr<devtools::storage::StorageHandler> | 168 std::unique_ptr<devtools::storage::StorageHandler> |
171 storage_handler_; | 169 storage_handler_; |
172 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_; | 170 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_; |
173 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_; | 171 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_; |
174 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_; | 172 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_; |
175 #if defined(OS_ANDROID) | 173 #if defined(OS_ANDROID) |
176 std::unique_ptr<device::PowerSaveBlockerImpl> power_save_blocker_; | 174 std::unique_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
177 std::unique_ptr<base::WeakPtrFactory<ui::ViewAndroid>> view_weak_factory_; | 175 std::unique_ptr<base::WeakPtrFactory<ui::ViewAndroid>> view_weak_factory_; |
178 #endif | 176 #endif |
179 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; | 177 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; |
180 bool current_frame_crashed_; | 178 bool current_frame_crashed_; |
181 | 179 |
182 // PlzNavigate | 180 // PlzNavigate |
183 | 181 |
184 // Handle that caused the setting of pending_. | 182 // Handle that caused the setting of pending_. |
185 NavigationHandle* pending_handle_; | 183 NavigationHandle* pending_handle_; |
186 | 184 |
(...skipping 10 matching lines...) Expand all Loading... |
197 | 195 |
198 // The FrameTreeNode associated with this agent. | 196 // The FrameTreeNode associated with this agent. |
199 FrameTreeNode* frame_tree_node_; | 197 FrameTreeNode* frame_tree_node_; |
200 | 198 |
201 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); | 199 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); |
202 }; | 200 }; |
203 | 201 |
204 } // namespace content | 202 } // namespace content |
205 | 203 |
206 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 204 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |