| 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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 class ColorPicker; | 30 class ColorPicker; |
| 31 | 31 |
| 32 class PageHandler : public NotificationObserver { | 32 class PageHandler : public NotificationObserver { |
| 33 public: | 33 public: |
| 34 typedef DevToolsProtocolClient::Response Response; | 34 typedef DevToolsProtocolClient::Response Response; |
| 35 | 35 |
| 36 PageHandler(); | 36 PageHandler(); |
| 37 ~PageHandler() override; | 37 ~PageHandler() override; |
| 38 | 38 |
| 39 void SetRenderFrameHost(RenderFrameHostImpl* host); | 39 void SetRenderFrameHost(RenderFrameHostImpl* host); |
| 40 void SetClient(scoped_ptr<Client> client); | 40 void SetClient(std::unique_ptr<Client> client); |
| 41 void Detached(); | 41 void Detached(); |
| 42 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); | 42 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); |
| 43 void OnSynchronousSwapCompositorFrame(const cc::CompositorFrameMetadata& | 43 void OnSynchronousSwapCompositorFrame(const cc::CompositorFrameMetadata& |
| 44 frame_metadata); | 44 frame_metadata); |
| 45 void DidAttachInterstitialPage(); | 45 void DidAttachInterstitialPage(); |
| 46 void DidDetachInterstitialPage(); | 46 void DidDetachInterstitialPage(); |
| 47 bool screencast_enabled() const { return enabled_ && screencast_enabled_; } | 47 bool screencast_enabled() const { return enabled_ && screencast_enabled_; } |
| 48 | 48 |
| 49 Response Enable(); | 49 Response Enable(); |
| 50 Response Disable(); | 50 Response Disable(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 int screencast_max_height_; | 111 int screencast_max_height_; |
| 112 int capture_every_nth_frame_; | 112 int capture_every_nth_frame_; |
| 113 int capture_retry_count_; | 113 int capture_retry_count_; |
| 114 bool has_compositor_frame_metadata_; | 114 bool has_compositor_frame_metadata_; |
| 115 cc::CompositorFrameMetadata next_compositor_frame_metadata_; | 115 cc::CompositorFrameMetadata next_compositor_frame_metadata_; |
| 116 cc::CompositorFrameMetadata last_compositor_frame_metadata_; | 116 cc::CompositorFrameMetadata last_compositor_frame_metadata_; |
| 117 int session_id_; | 117 int session_id_; |
| 118 int frame_counter_; | 118 int frame_counter_; |
| 119 int frames_in_flight_; | 119 int frames_in_flight_; |
| 120 | 120 |
| 121 scoped_ptr<ColorPicker> color_picker_; | 121 std::unique_ptr<ColorPicker> color_picker_; |
| 122 | 122 |
| 123 RenderFrameHostImpl* host_; | 123 RenderFrameHostImpl* host_; |
| 124 scoped_ptr<Client> client_; | 124 std::unique_ptr<Client> client_; |
| 125 NotificationRegistrar registrar_; | 125 NotificationRegistrar registrar_; |
| 126 base::WeakPtrFactory<PageHandler> weak_factory_; | 126 base::WeakPtrFactory<PageHandler> weak_factory_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 128 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace page | 131 } // namespace page |
| 132 } // namespace devtools | 132 } // namespace devtools |
| 133 } // namespace content | 133 } // namespace content |
| 134 | 134 |
| 135 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 135 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| OLD | NEW |