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

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: addressed nits 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
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 8fafdaeb59cce21eb0bde46d2e6f87fbeb6b1e2d..fb00a3a40d9dd3649684e7ce846622a2094ac27d 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"
@@ -3778,33 +3777,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();
}

Powered by Google App Engine
This is Rietveld 408576698