Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1126)

Unified Diff: media/base/android/media_player_android.h

Issue 302453012: Support casting for embedded YT videos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698