| Index: media/blink/webmediaplayer_impl.h
|
| diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
|
| index d97a0b4c4a5429f5b1e8be09ced5e34e0600c9eb..2a0ded8bc0f358204e0ebef20e5ae0d153cf523d 100644
|
| --- a/media/blink/webmediaplayer_impl.h
|
| +++ b/media/blink/webmediaplayer_impl.h
|
| @@ -36,6 +36,11 @@
|
| #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
|
| #include "url/gurl.h"
|
|
|
| +#if defined(OS_ANDROID) // WMPI_CAST
|
| +// Delete this file when WMPI_CAST is no longer needed.
|
| +#include "media/blink/webmediaplayer_cast_android.h"
|
| +#endif
|
| +
|
| namespace blink {
|
| class WebGraphicsContext3D;
|
| class WebLocalFrame;
|
| @@ -190,10 +195,32 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
|
| void OnHidden() override;
|
| void OnShown() override;
|
|
|
| +#if defined(OS_ANDROID) // WMPI_CAST
|
| + void requestRemotePlayback() override;
|
| + void requestRemotePlaybackControl() override;
|
| +
|
| + void set_media_player_manager(
|
| + RendererMediaPlayerManagerInterface* media_player_manager);
|
| + void OnRemotePlaybackEnded();
|
| + void OnDisconnectedFromRemoteDevice(double t);
|
| + void SuspendForRemote();
|
| + void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame,
|
| + PipelineStatus status);
|
| + gfx::Size GetCanvasSize() const;
|
| +#endif
|
| +
|
| private:
|
| + // Ask for the pipeline to be suspended, will call Suspend() when ready.
|
| + // (Possibly immediately.)
|
| + void ScheduleSuspend();
|
| +
|
| // Initiate suspending the pipeline.
|
| void Suspend();
|
|
|
| + // Ask for the pipeline to be resumed, will call Resume() when ready.
|
| + // (Possibly immediately.)
|
| + void ScheduleResume();
|
| +
|
| // Initiate resuming the pipeline.
|
| void Resume();
|
|
|
| @@ -398,6 +425,10 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
|
|
|
| scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_;
|
|
|
| +#if defined(OS_ANDROID) // WMPI_CAST
|
| + WebMediaPlayerCast cast_impl_;
|
| +#endif
|
| +
|
| scoped_ptr<RendererFactory> renderer_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
|
|
|