Chromium Code Reviews| 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_VIEW_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/browser/devtools/ipc_devtools_agent_host.h" | 13 #include "content/browser/devtools/ipc_devtools_agent_host.h" |
| 14 #include "content/browser/devtools/protocol/dom_handler.h" | |
| 15 #include "content/browser/devtools/protocol/input_handler.h" | |
| 16 #include "content/browser/devtools/protocol/network_handler.h" | |
| 17 #include "content/browser/devtools/protocol/page_handler.h" | |
| 18 #include "content/browser/devtools/protocol/power_handler.h" | |
| 19 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 20 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 22 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
| 23 | 18 |
| 24 namespace cc { | 19 namespace cc { |
| 25 class CompositorFrameMetadata; | 20 class CompositorFrameMetadata; |
| 26 } | 21 } |
| 27 | 22 |
| 28 namespace content { | 23 namespace content { |
| 29 | 24 |
| 30 class DevToolsProtocolHandlerImpl; | 25 class DevToolsProtocolHandlerImpl; |
| 31 class DevToolsTracingHandler; | |
| 32 class RendererOverridesHandler; | 26 class RendererOverridesHandler; |
| 33 class RenderViewHost; | 27 class RenderViewHost; |
| 34 class RenderViewHostImpl; | 28 class RenderViewHostImpl; |
| 35 | 29 |
| 36 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
| 37 class PowerSaveBlockerImpl; | 31 class PowerSaveBlockerImpl; |
| 38 #endif | 32 #endif |
| 39 | 33 |
| 34 namespace devtools { | |
| 35 namespace dom { | |
|
caseq
2014/10/16 12:07:21
here and below, collapse namespace ... { class ...
dgozman
2014/10/17 13:53:08
Done.
| |
| 36 class DOMHandler; | |
| 37 } | |
| 38 namespace input { | |
| 39 class InputHandler; | |
| 40 } | |
| 41 namespace network { | |
| 42 class NetworkHandler; | |
| 43 } | |
| 44 namespace page { | |
| 45 class PageHandler; | |
| 46 } | |
| 47 namespace power { | |
| 48 class PowerHandler; | |
| 49 } | |
| 50 namespace tracing { | |
| 51 class TracingHandler; | |
| 52 } | |
| 53 } | |
| 54 | |
| 40 class CONTENT_EXPORT RenderViewDevToolsAgentHost | 55 class CONTENT_EXPORT RenderViewDevToolsAgentHost |
| 41 : public IPCDevToolsAgentHost, | 56 : public IPCDevToolsAgentHost, |
| 42 private WebContentsObserver, | 57 private WebContentsObserver, |
| 43 public NotificationObserver { | 58 public NotificationObserver { |
| 44 public: | 59 public: |
| 45 static void OnCancelPendingNavigation(RenderViewHost* pending, | 60 static void OnCancelPendingNavigation(RenderViewHost* pending, |
| 46 RenderViewHost* current); | 61 RenderViewHost* current); |
| 47 | 62 |
| 48 RenderViewDevToolsAgentHost(RenderViewHost*); | 63 RenderViewDevToolsAgentHost(RenderViewHost*); |
| 49 | 64 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 | 125 |
| 111 void InnerOnClientAttached(); | 126 void InnerOnClientAttached(); |
| 112 void InnerClientDetachedFromRenderer(); | 127 void InnerClientDetachedFromRenderer(); |
| 113 | 128 |
| 114 RenderViewHostImpl* render_view_host_; | 129 RenderViewHostImpl* render_view_host_; |
| 115 scoped_ptr<devtools::dom::DOMHandler> dom_handler_; | 130 scoped_ptr<devtools::dom::DOMHandler> dom_handler_; |
| 116 scoped_ptr<devtools::input::InputHandler> input_handler_; | 131 scoped_ptr<devtools::input::InputHandler> input_handler_; |
| 117 scoped_ptr<devtools::network::NetworkHandler> network_handler_; | 132 scoped_ptr<devtools::network::NetworkHandler> network_handler_; |
| 118 scoped_ptr<devtools::page::PageHandler> page_handler_; | 133 scoped_ptr<devtools::page::PageHandler> page_handler_; |
| 119 scoped_ptr<devtools::power::PowerHandler> power_handler_; | 134 scoped_ptr<devtools::power::PowerHandler> power_handler_; |
| 135 scoped_ptr<devtools::tracing::TracingHandler> tracing_handler_; | |
| 120 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; | 136 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; |
| 121 scoped_ptr<RendererOverridesHandler> overrides_handler_; | 137 scoped_ptr<RendererOverridesHandler> overrides_handler_; |
| 122 scoped_ptr<DevToolsTracingHandler> tracing_handler_; | |
| 123 #if defined(OS_ANDROID) | 138 #if defined(OS_ANDROID) |
| 124 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; | 139 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
| 125 #endif | 140 #endif |
| 126 std::string state_; | 141 std::string state_; |
| 127 NotificationRegistrar registrar_; | 142 NotificationRegistrar registrar_; |
| 128 bool reattaching_; | 143 bool reattaching_; |
| 129 | 144 |
| 130 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 145 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
| 131 }; | 146 }; |
| 132 | 147 |
| 133 } // namespace content | 148 } // namespace content |
| 134 | 149 |
| 135 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 150 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |