Chromium Code Reviews| Index: media/base/android/media_player_android.h |
| diff --git a/media/base/android/media_player_android.h b/media/base/android/media_player_android.h |
| index cf67bd03a73bba35d91014056f187f9b77bfaa30..860c93b4ed6b2accd6064ec74c986a73b32a4567 100644 |
| --- a/media/base/android/media_player_android.h |
| +++ b/media/base/android/media_player_android.h |
| @@ -43,6 +43,9 @@ class MEDIA_EXPORT MediaPlayerAndroid { |
| // Passing an external java surface object to the player. |
| virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) = 0; |
| + // Sets the url of the frame that contains this player. |
| + virtual void SetFrameUrl(const GURL& frame_url); |
|
qinmin
2014/06/02 17:19:21
no need to be virtual, and for simple setter and g
May
2014/06/04 14:05:08
Done.
|
| + |
| // Start playing the media. |
| virtual void Start() = 0; |
| @@ -72,6 +75,7 @@ class MEDIA_EXPORT MediaPlayerAndroid { |
| virtual bool CanSeekBackward() = 0; |
| virtual GURL GetUrl(); |
| virtual GURL GetFirstPartyForCookies(); |
| + virtual GURL GetFrameUrl(); |
|
qinmin
2014/06/02 17:19:21
GURL frame_url() const {
return frame_url_;
}
May
2014/06/04 14:05:08
Done.
|
| // Associates the |cdm| with this player. |
| virtual void SetCdm(MediaKeys* cdm); |
| @@ -104,6 +108,9 @@ class MEDIA_EXPORT MediaPlayerAndroid { |
| // Resource manager for all the media players. |
| MediaPlayerManager* manager_; |
| + // Url for the frame that contains this player. |
| + GURL frame_url_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); |
| }; |