Chromium Code Reviews| Index: webkit/media/android/webmediaplayer_android.h |
| diff --git a/webkit/media/android/webmediaplayer_android.h b/webkit/media/android/webmediaplayer_android.h |
| index 9e8ae652ec734ade3e9fd3cb91afa81ef8d4fd2f..60a9d1e90cc9ab012a6744c0416c2065cf99f1d8 100644 |
| --- a/webkit/media/android/webmediaplayer_android.h |
| +++ b/webkit/media/android/webmediaplayer_android.h |
| @@ -12,10 +12,8 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "base/message_loop.h" |
| #include "base/time.h" |
| -#if defined(GOOGLE_TV) |
| -#include "media/base/demuxer_stream.h" |
| -#endif |
| #include "cc/layers/video_frame_provider.h" |
| +#include "media/base/android/media_player_bridge.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
| @@ -23,7 +21,12 @@ |
| #include "ui/gfx/rect_f.h" |
| #include "webkit/media/android/stream_texture_factory_android.h" |
| +#if defined(GOOGLE_TV) |
| +#include "webkit/media/android/media_source_delegate.h" |
| +#endif |
| + |
| namespace media { |
| +class Demuxer; |
| class MediaLog; |
| } |
| @@ -38,8 +41,9 @@ class WebLayerImpl; |
| namespace webkit_media { |
| #if defined(GOOGLE_TV) |
| -class MediaSourceDelegate; |
| +class MediaStreamAudioRenderer; |
| #endif |
| +class MediaStreamClient; |
| class WebMediaPlayerManagerAndroid; |
| class WebMediaPlayerProxyAndroid; |
| @@ -205,6 +209,10 @@ class WebMediaPlayerAndroid |
| // Called when DemuxerStreamPlayer needs to read data from ChunkDemuxer. |
| void OnReadFromDemuxer(media::DemuxerStream::Type type, bool seek_done); |
| + |
| + bool InjectMediaStream(MediaStreamClient* media_stream_client, |
| + media::Demuxer* demuxer, |
| + const base::Closure& destroy_demuxer_cb); |
| #endif |
| protected: |
| @@ -222,6 +230,10 @@ class WebMediaPlayerAndroid |
| // Requesting whether the surface texture peer needs to be reestablished. |
| void SetNeedsEstablishPeer(bool needs_establish_peer); |
| + void InitializeMediaPlayer( |
| + const WebKit::WebURL& url, |
| + media::MediaPlayerAndroid::SourceType media_source_type); |
|
acolwell GONE FROM CHROMIUM
2013/05/20 21:23:22
nit:s/media_// here and everywhere else SourceType
wonsik
2013/05/21 10:09:29
Done.
|
| + |
| #if defined(GOOGLE_TV) |
| // Request external surface for out-of-band composition. |
| void RequestExternalSurface(); |
| @@ -307,7 +319,10 @@ class WebMediaPlayerAndroid |
| // time. |
| gfx::RectF last_computed_rect_; |
| + // Media Source / Media Stream related fields. |
| scoped_ptr<MediaSourceDelegate> media_source_delegate_; |
| + media::Demuxer* demuxer_; |
| + base::Closure destroy_demuxer_cb_; |
| #endif |
| // Proxy object that delegates method calls on Render Thread. |
| @@ -321,6 +336,7 @@ class WebMediaPlayerAndroid |
| float current_time_; |
| media::MediaLog* media_log_; |
| + MediaStreamClient* media_stream_client_; |
| DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| }; |