Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.h

Issue 2500093002: [DevTools] Move IO and Tracing to new generator. (Closed)
Patch Set: roll Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 class FrameTreeNode; 37 class FrameTreeNode;
38 class NavigationHandle; 38 class NavigationHandle;
39 class NavigationThrottle; 39 class NavigationThrottle;
40 class RenderFrameHostImpl; 40 class RenderFrameHostImpl;
41 41
42 namespace devtools { 42 namespace devtools {
43 namespace dom { class DOMHandler; } 43 namespace dom { class DOMHandler; }
44 namespace emulation { class EmulationHandler; } 44 namespace emulation { class EmulationHandler; }
45 namespace input { class InputHandler; } 45 namespace input { class InputHandler; }
46 namespace inspector { class InspectorHandler; } 46 namespace inspector { class InspectorHandler; }
47 namespace io { class IOHandler; }
48 namespace network { class NetworkHandler; } 47 namespace network { class NetworkHandler; }
49 namespace page { class PageHandler; } 48 namespace page { class PageHandler; }
50 namespace schema { class SchemaHandler; } 49 namespace schema { class SchemaHandler; }
51 namespace security { class SecurityHandler; } 50 namespace security { class SecurityHandler; }
52 namespace service_worker { class ServiceWorkerHandler; } 51 namespace service_worker { class ServiceWorkerHandler; }
53 namespace storage { class StorageHandler; } 52 namespace storage { class StorageHandler; }
54 namespace target { class TargetHandler; } 53 namespace target { class TargetHandler; }
55 namespace tracing { class TracingHandler; }
56 } 54 }
57 55
56 namespace protocol {
57 class IOHandler;
58 class TracingHandler;
59 } // namespace protocol
60
58 class CONTENT_EXPORT RenderFrameDevToolsAgentHost 61 class CONTENT_EXPORT RenderFrameDevToolsAgentHost
59 : public DevToolsAgentHostImpl, 62 : public DevToolsAgentHostImpl,
60 private WebContentsObserver { 63 private WebContentsObserver {
61 public: 64 public:
62 static void AddAllAgentHosts(DevToolsAgentHost::List* result); 65 static void AddAllAgentHosts(DevToolsAgentHost::List* result);
63 66
64 static void OnCancelPendingNavigation(RenderFrameHost* pending, 67 static void OnCancelPendingNavigation(RenderFrameHost* pending,
65 RenderFrameHost* current); 68 RenderFrameHost* current);
66 static void OnBeforeNavigation(RenderFrameHost* current, 69 static void OnBeforeNavigation(RenderFrameHost* current,
67 RenderFrameHost* pending); 70 RenderFrameHost* pending);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 179
177 std::unique_ptr<FrameHostHolder> current_; 180 std::unique_ptr<FrameHostHolder> current_;
178 std::unique_ptr<FrameHostHolder> pending_; 181 std::unique_ptr<FrameHostHolder> pending_;
179 182
180 // Stores per-host state between DisconnectWebContents and ConnectWebContents. 183 // Stores per-host state between DisconnectWebContents and ConnectWebContents.
181 std::unique_ptr<FrameHostHolder> disconnected_; 184 std::unique_ptr<FrameHostHolder> disconnected_;
182 185
183 std::unique_ptr<devtools::dom::DOMHandler> dom_handler_; 186 std::unique_ptr<devtools::dom::DOMHandler> dom_handler_;
184 std::unique_ptr<devtools::input::InputHandler> input_handler_; 187 std::unique_ptr<devtools::input::InputHandler> input_handler_;
185 std::unique_ptr<devtools::inspector::InspectorHandler> inspector_handler_; 188 std::unique_ptr<devtools::inspector::InspectorHandler> inspector_handler_;
186 std::unique_ptr<devtools::io::IOHandler> io_handler_; 189 std::unique_ptr<protocol::IOHandler> io_handler_;
187 std::unique_ptr<devtools::network::NetworkHandler> network_handler_; 190 std::unique_ptr<devtools::network::NetworkHandler> network_handler_;
188 std::unique_ptr<devtools::page::PageHandler> page_handler_; 191 std::unique_ptr<devtools::page::PageHandler> page_handler_;
189 std::unique_ptr<devtools::schema::SchemaHandler> schema_handler_; 192 std::unique_ptr<devtools::schema::SchemaHandler> schema_handler_;
190 std::unique_ptr<devtools::security::SecurityHandler> security_handler_; 193 std::unique_ptr<devtools::security::SecurityHandler> security_handler_;
191 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler> 194 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler>
192 service_worker_handler_; 195 service_worker_handler_;
193 std::unique_ptr<devtools::storage::StorageHandler> 196 std::unique_ptr<devtools::storage::StorageHandler>
194 storage_handler_; 197 storage_handler_;
195 std::unique_ptr<devtools::target::TargetHandler> target_handler_; 198 std::unique_ptr<devtools::target::TargetHandler> target_handler_;
196 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_; 199 std::unique_ptr<protocol::TracingHandler> tracing_handler_;
197 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_; 200 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_;
198 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_; 201 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_;
199 #if defined(OS_ANDROID) 202 #if defined(OS_ANDROID)
200 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; 203 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_;
201 #endif 204 #endif
202 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; 205 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_;
203 RenderFrameHostImpl* handlers_frame_host_; 206 RenderFrameHostImpl* handlers_frame_host_;
204 bool current_frame_crashed_; 207 bool current_frame_crashed_;
205 208
206 // PlzNavigate 209 // PlzNavigate
(...skipping 14 matching lines...) Expand all
221 224
222 // The FrameTreeNode associated with this agent. 225 // The FrameTreeNode associated with this agent.
223 FrameTreeNode* frame_tree_node_; 226 FrameTreeNode* frame_tree_node_;
224 227
225 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); 228 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost);
226 }; 229 };
227 230
228 } // namespace content 231 } // namespace content
229 232
230 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 233 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol_string.cc ('k') | content/browser/devtools/render_frame_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698