OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void OnDisconnectedFromRemoteDevice(double t); | 216 void OnDisconnectedFromRemoteDevice(double t); |
217 void SuspendForRemote(); | 217 void SuspendForRemote(); |
218 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, | 218 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, |
219 PipelineStatus status); | 219 PipelineStatus status); |
220 gfx::Size GetCanvasSize() const; | 220 gfx::Size GetCanvasSize() const; |
221 void SetDeviceScaleFactor(float scale_factor); | 221 void SetDeviceScaleFactor(float scale_factor); |
222 void SetUseFallbackPath(bool use_fallback_path); | 222 void SetUseFallbackPath(bool use_fallback_path); |
223 #endif | 223 #endif |
224 | 224 |
225 // MediaObserverClient implementation. | 225 // MediaObserverClient implementation. |
226 void SwitchRenderer(bool disable_pipeline_auto_suspend) override; | 226 void SwitchRenderer(bool is_rendered_remotely) override; |
227 void ActivateViewportIntersectionMonitoring(bool activate) override; | 227 void ActivateViewportIntersectionMonitoring(bool activate) override; |
228 | 228 |
229 // Called from WebMediaPlayerCast. | 229 // Called from WebMediaPlayerCast. |
230 // TODO(hubbe): WMPI_CAST make private. | 230 // TODO(hubbe): WMPI_CAST make private. |
231 void OnPipelineSeeked(bool time_updated); | 231 void OnPipelineSeeked(bool time_updated); |
232 | 232 |
233 // Distinct states that |delegate_| can be in. (Public for testing.) | 233 // Distinct states that |delegate_| can be in. (Public for testing.) |
234 enum class DelegateState { | 234 enum class DelegateState { |
235 GONE, | 235 GONE, |
236 PLAYING, | 236 PLAYING, |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 base::TimeDelta last_uploaded_frame_timestamp_; | 716 base::TimeDelta last_uploaded_frame_timestamp_; |
717 | 717 |
718 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; | 718 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; |
719 | 719 |
720 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 720 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
721 }; | 721 }; |
722 | 722 |
723 } // namespace media | 723 } // namespace media |
724 | 724 |
725 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 725 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |