| 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" |
| 14 #include "content/browser/devtools/protocol/input_handler.h" | 15 #include "content/browser/devtools/protocol/input_handler.h" |
| 15 #include "content/browser/devtools/protocol/page_handler.h" | 16 #include "content/browser/devtools/protocol/page_handler.h" |
| 16 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 17 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
| 18 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
| 19 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
| 20 | 21 |
| 21 namespace cc { | 22 namespace cc { |
| 22 class CompositorFrameMetadata; | 23 class CompositorFrameMetadata; |
| 23 } | 24 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 104 |
| 104 void OnDispatchOnInspectorFrontend(const std::string& message); | 105 void OnDispatchOnInspectorFrontend(const std::string& message); |
| 105 void OnSaveAgentRuntimeState(const std::string& state); | 106 void OnSaveAgentRuntimeState(const std::string& state); |
| 106 | 107 |
| 107 void ClientDetachedFromRenderer(); | 108 void ClientDetachedFromRenderer(); |
| 108 | 109 |
| 109 void InnerOnClientAttached(); | 110 void InnerOnClientAttached(); |
| 110 void InnerClientDetachedFromRenderer(); | 111 void InnerClientDetachedFromRenderer(); |
| 111 | 112 |
| 112 RenderViewHostImpl* render_view_host_; | 113 RenderViewHostImpl* render_view_host_; |
| 114 scoped_ptr<devtools::dom::DOMHandler> dom_handler_; |
| 113 scoped_ptr<devtools::input::InputHandler> input_handler_; | 115 scoped_ptr<devtools::input::InputHandler> input_handler_; |
| 114 scoped_ptr<devtools::page::PageHandler> page_handler_; | 116 scoped_ptr<devtools::page::PageHandler> page_handler_; |
| 115 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; | 117 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; |
| 116 scoped_ptr<RendererOverridesHandler> overrides_handler_; | 118 scoped_ptr<RendererOverridesHandler> overrides_handler_; |
| 117 scoped_ptr<DevToolsTracingHandler> tracing_handler_; | 119 scoped_ptr<DevToolsTracingHandler> tracing_handler_; |
| 118 scoped_ptr<DevToolsPowerHandler> power_handler_; | 120 scoped_ptr<DevToolsPowerHandler> power_handler_; |
| 119 #if defined(OS_ANDROID) | 121 #if defined(OS_ANDROID) |
| 120 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; | 122 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
| 121 #endif | 123 #endif |
| 122 std::string state_; | 124 std::string state_; |
| 123 NotificationRegistrar registrar_; | 125 NotificationRegistrar registrar_; |
| 124 bool reattaching_; | 126 bool reattaching_; |
| 125 | 127 |
| 126 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 128 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace content | 131 } // namespace content |
| 130 | 132 |
| 131 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 133 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |