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

Unified Diff: content/browser/media/session/media_session_impl.h

Issue 2479603003: Revert of Adding new media controls to MediaNotification (Closed)
Patch Set: Created 4 years, 1 month 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/media/session/media_session_impl.h
diff --git a/content/browser/media/session/media_session_impl.h b/content/browser/media/session/media_session_impl.h
index 4e07dad8d06f22ba0f6b45f03c7fbda3b2a6093f..2a6d027f5e4222e12b06e93ea826f6b3d858600f 100644
--- a/content/browser/media/session/media_session_impl.h
+++ b/content/browser/media/session/media_session_impl.h
@@ -39,7 +39,6 @@
class MediaSessionImplVisibilityBrowserTest;
class MediaSessionObserver;
class MediaSessionPlayerObserver;
-class MediaSessionServiceImpl;
#if defined(OS_ANDROID)
class MediaSessionAndroid;
@@ -124,17 +123,6 @@
// |type| represents the origin of the request.
CONTENT_EXPORT void Stop(MediaSession::SuspendType suspend_type) override;
- // Received a media session action and forward to blink::MediaSession.
- void DidReceiveAction(blink::mojom::MediaSessionAction action) override;
-
- // Called when an action is enabled in blink::MediaSession. This method will
- // notify the observers that the action is enabled.
- void OnMediaSessionEnabledAction(blink::mojom::MediaSessionAction action);
-
- // Called when an action is disabled in blink::MediaSession. This method will
- // notify the observers that the action is disabled.
- void OnMediaSessionDisabledAction(blink::mojom::MediaSessionAction action);
-
// Let the media session start ducking such that the volume multiplier is
// reduced.
CONTENT_EXPORT void StartDucking();
@@ -172,11 +160,6 @@
// WebContentsObserver implementation
void WebContentsDestroyed() override;
- // Sets the associated MediaSessionService for communicating with
- // blink::MediaSession.
- MediaSessionServiceImpl* GetMediaSessionService() { return service_; }
- void SetMediaSessionService(MediaSessionServiceImpl* service);
-
private:
friend class content::WebContentsUserData<MediaSessionImpl>;
friend class ::MediaSessionImplBrowserTest;
@@ -272,10 +255,6 @@
std::unique_ptr<MediaSessionAndroid> session_android_;
#endif // defined(OS_ANDROID)
- // The MediaSessionService this session is associated with (the service of the
- // top-level frame).
- MediaSessionServiceImpl* service_;
-
DISALLOW_COPY_AND_ASSIGN(MediaSessionImpl);
};
« no previous file with comments | « content/browser/media/session/media_session_android.cc ('k') | content/browser/media/session/media_session_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698