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

Unified Diff: media/blink/webmediaplayer_cast_android.h

Issue 1570043002: Implement MediaSession on top of the WebMediaPlayerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session
Patch Set: Reorder. Created 4 years, 11 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
« no previous file with comments | « media/blink/renderer_media_player_interface.h ('k') | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_cast_android.h
diff --git a/media/blink/webmediaplayer_cast_android.h b/media/blink/webmediaplayer_cast_android.h
index 2707e885fedfdb85f584d747e789f81bbae46146..dc8259363013408a087b18157fc68b74ee548e54 100644
--- a/media/blink/webmediaplayer_cast_android.h
+++ b/media/blink/webmediaplayer_cast_android.h
@@ -31,11 +31,12 @@ class WebMediaPlayerCast : public RendererMediaPlayerInterface {
public:
WebMediaPlayerCast(WebMediaPlayerImpl* impl,
blink::WebMediaPlayerClient* client,
- const WebMediaPlayerParams::Context3DCB& context_3d_cb,
- base::WeakPtr<WebMediaPlayerDelegate> delegate);
+ const WebMediaPlayerParams::Context3DCB& context_3d_cb);
~WebMediaPlayerCast();
- void Initialize(const GURL& url, blink::WebLocalFrame* frame);
+ void Initialize(const GURL& url,
+ blink::WebLocalFrame* frame,
+ int delegate_id);
void requestRemotePlayback();
void requestRemotePlaybackControl();
@@ -109,7 +110,6 @@ class WebMediaPlayerCast : public RendererMediaPlayerInterface {
WebMediaPlayerImpl* webmediaplayer_;
blink::WebMediaPlayerClient* client_;
WebMediaPlayerParams::Context3DCB context_3d_cb_;
- base::WeakPtr<WebMediaPlayerDelegate> delegate_;
// Manages this object and delegates player calls to the browser process.
// Owned by RenderFrameImpl.
@@ -128,6 +128,7 @@ class WebMediaPlayerCast : public RendererMediaPlayerInterface {
// Last reported playout time.
base::TimeDelta remote_time_;
base::TimeTicks remote_time_at_;
+ base::TimeDelta duration_;
// Whether the media player has been initialized.
bool is_player_initialized_ = false;
« no previous file with comments | « media/blink/renderer_media_player_interface.h ('k') | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698