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

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

Issue 1441883003: Hook up RendererMediaSessionManager with browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clang compile fix Created 5 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/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
new file mode 100644
index 0000000000000000000000000000000000000000..f9bd5988b0446c694272a9be8a9d73a11ab630dd
--- /dev/null
+++ b/content/browser/media/android/browser_media_session_manager.h
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_
+#define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_
+
+#include "base/basictypes.h"
+#include "content/browser/media/android/media_session.h"
mlamouri (slow - plz ping) 2015/11/30 12:38:20 nit: do you need this include?
davve 2015/11/30 14:19:48 Not for more than pulling in ipc_message.h. Fixed.
+
+namespace content {
+
+class RenderFrameHost;
+
+class BrowserMediaSessionManager {
+ public:
+ BrowserMediaSessionManager(RenderFrameHost* render_frame_host);
+
+ // Message handlers.
+ void OnActivate(int session_id, int activation_id);
+ void OnDeactivate(int session_id, int deactivation_id);
+
+ int RoutingID();
mlamouri (slow - plz ping) 2015/11/30 12:38:20 nit: GetRoutingID(), probably |const| too.
davve 2015/11/30 14:19:48 Done. (Maybe something to fix in BrowserMediaPlaye
+
+ bool Send(IPC::Message* msg);
+
+ private:
+ RenderFrameHost* const render_frame_host_;
+
+ DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698