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

Unified Diff: content/browser/media/android/browser_media_session_manager.h

Issue 1308983005: NOT FOR LANDING Implement WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add forward declaration 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
Index: content/browser/media/android/browser_media_session_manager.h
diff --git a/content/browser/media/android/browser_media_session_manager.h b/content/browser/media/android/browser_media_session_manager.h
index 3b07b295816780eb8859f5b71d5958501d4ad547..6e30ea1e7e3dbeea44d6c6caa0a287519a980984 100644
--- a/content/browser/media/android/browser_media_session_manager.h
+++ b/content/browser/media/android/browser_media_session_manager.h
@@ -6,6 +6,8 @@
#define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_
#include "base/macros.h"
+#include "base/memory/scoped_vector.h"
+#include "content/browser/media/android/media_session.h"
namespace IPC {
class Message;
@@ -25,10 +27,17 @@ class BrowserMediaSessionManager {
int GetRoutingID() const;
+ MediaSession* GetSession(int session_id);
+
+ void RemovePlayers(MediaSessionObserver* observer);
+ void RemovePlayer(MediaSessionObserver* observer, int player_id);
+ void OnPlayerPaused(MediaSessionObserver* observer, int player_id);
+
bool Send(IPC::Message* msg);
private:
RenderFrameHost* const render_frame_host_;
+ ScopedVector<MediaSession> sessions_;
DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager);
};

Powered by Google App Engine
This is Rietveld 408576698