| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROTOCOL_PAGE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/public/browser/readback_types.h" | 23 #include "content/public/browser/readback_types.h" |
| 24 | 24 |
| 25 class SkBitmap; | 25 class SkBitmap; |
| 26 | 26 |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class Image; | 28 class Image; |
| 29 } // namespace gfx | 29 } // namespace gfx |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 | 32 |
| 33 class DevToolsSession; | 33 class DevToolsAgentHostImpl; |
| 34 class NavigationHandle; | 34 class NavigationHandle; |
| 35 class PageNavigationThrottle; | 35 class PageNavigationThrottle; |
| 36 class RenderFrameHostImpl; | 36 class RenderFrameHostImpl; |
| 37 class WebContentsImpl; | 37 class WebContentsImpl; |
| 38 | 38 |
| 39 namespace protocol { | 39 namespace protocol { |
| 40 | 40 |
| 41 class PageHandler : public DevToolsDomainHandler, | 41 class PageHandler : public DevToolsDomainHandler, |
| 42 public Page::Backend, | 42 public Page::Backend, |
| 43 public NotificationObserver { | 43 public NotificationObserver { |
| 44 public: | 44 public: |
| 45 PageHandler(); | 45 PageHandler(); |
| 46 ~PageHandler() override; | 46 ~PageHandler() override; |
| 47 | 47 |
| 48 static PageHandler* FromSession(DevToolsSession* session); | 48 static std::vector<PageHandler*> ForAgentHost(DevToolsAgentHostImpl* host); |
| 49 | 49 |
| 50 void Wire(UberDispatcher* dispatcher) override; | 50 void Wire(UberDispatcher* dispatcher) override; |
| 51 void SetRenderFrameHost(RenderFrameHostImpl* host) override; | 51 void SetRenderFrameHost(RenderFrameHostImpl* host) override; |
| 52 void OnSwapCompositorFrame(cc::CompositorFrameMetadata frame_metadata); | 52 void OnSwapCompositorFrame(cc::CompositorFrameMetadata frame_metadata); |
| 53 void OnSynchronousSwapCompositorFrame( | 53 void OnSynchronousSwapCompositorFrame( |
| 54 cc::CompositorFrameMetadata frame_metadata); | 54 cc::CompositorFrameMetadata frame_metadata); |
| 55 void DidAttachInterstitialPage(); | 55 void DidAttachInterstitialPage(); |
| 56 void DidDetachInterstitialPage(); | 56 void DidDetachInterstitialPage(); |
| 57 bool screencast_enabled() const { return enabled_ && screencast_enabled_; } | 57 bool screencast_enabled() const { return enabled_ && screencast_enabled_; } |
| 58 | 58 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 NotificationRegistrar registrar_; | 149 NotificationRegistrar registrar_; |
| 150 base::WeakPtrFactory<PageHandler> weak_factory_; | 150 base::WeakPtrFactory<PageHandler> weak_factory_; |
| 151 | 151 |
| 152 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 152 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace protocol | 155 } // namespace protocol |
| 156 } // namespace content | 156 } // namespace content |
| 157 | 157 |
| 158 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 158 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| OLD | NEW |