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

Unified Diff: content/browser/media/android/media_web_contents_observer_android.cc

Issue 1836093003: Remove secondary player from Media Sessions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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 | « content/browser/media/android/media_web_contents_observer_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/android/media_web_contents_observer_android.cc
diff --git a/content/browser/media/android/media_web_contents_observer_android.cc b/content/browser/media/android/media_web_contents_observer_android.cc
index 819c6b4ba367dbb97644167f391904b91b90c730..581cf41165e81e281d3cd610b2594d48d99e13fd 100644
--- a/content/browser/media/android/media_web_contents_observer_android.cc
+++ b/content/browser/media/android/media_web_contents_observer_android.cc
@@ -100,6 +100,13 @@ bool MediaWebContentsObserverAndroid::RequestPlay(
render_frame_host, delegate_id)) != media_session_map_.end();
}
+void MediaWebContentsObserverAndroid::DisconnectMediaSession(
+ RenderFrameHost* render_frame_host,
+ int delegate_id) {
+ session_controllers_manager()->OnEnd(
boliu 2016/03/29 17:33:57 This doesn't build on m50 branch. session_controll
+ MediaPlayerId(render_frame_host, delegate_id));
+}
+
#if defined(VIDEO_HOLE)
void MediaWebContentsObserverAndroid::OnFrameInfoUpdated() {
for (auto it = media_player_managers_.begin();
« no previous file with comments | « content/browser/media/android/media_web_contents_observer_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698