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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: Don't review, this CL is getting huge and needs to be split Created 4 years, 2 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/web_contents/web_contents_impl.h ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index bc2bfbb066280408bc461f74678ed938f1d40d80..9b340e163f606ef1181756673b9aabaab5c42cd2 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -60,7 +60,6 @@
#include "content/browser/media/audio_stream_monitor.h"
#include "content/browser/media/capture/web_contents_audio_muter.h"
#include "content/browser/media/media_web_contents_observer.h"
-#include "content/browser/media/session/media_session.h"
#include "content/browser/message_port_message_filter.h"
#include "content/browser/plugin_content_origin_whitelist.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
@@ -3786,33 +3785,6 @@ void WebContentsImpl::OnUpdateFaviconURL(
observer.DidUpdateFaviconURL(candidates);
}
-void WebContentsImpl::OnMediaSessionStateChanged() {
- MediaSession* session = MediaSession::Get(this);
- for (auto& observer : observers_) {
- observer.MediaSessionStateChanged(session->IsControllable(),
- session->IsSuspended());
- }
-}
-
-void WebContentsImpl::OnMediaSessionMetadataChanged() {
- MediaSession* session = MediaSession::Get(this);
- for (auto& observer : observers_) {
- observer.MediaSessionMetadataChanged(session->metadata());
- }
-}
-
-void WebContentsImpl::ResumeMediaSession() {
- MediaSession::Get(this)->Resume(MediaSession::SuspendType::UI);
-}
-
-void WebContentsImpl::SuspendMediaSession() {
- MediaSession::Get(this)->Suspend(MediaSession::SuspendType::UI);
-}
-
-void WebContentsImpl::StopMediaSession() {
- MediaSession::Get(this)->Stop(MediaSession::SuspendType::UI);
-}
-
void WebContentsImpl::OnPasswordInputShownOnHttp() {
controller_.ssl_manager()->DidShowPasswordInputOnHttp();
}
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698