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..888ab45688ffee26aaca74fe2557baaeb9a00b14 |
--- /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 "ipc/ipc_message.h" |
+ |
+namespace content { |
+ |
+class RenderFrameHost; |
+ |
+class BrowserMediaSessionManager { |
+ public: |
+ BrowserMediaSessionManager(RenderFrameHost* render_frame_host); |
+ |
+ // Message handlers. |
+ void OnActivate(int session_id, int activation_id); |
mlamouri (slow - plz ping)
2015/12/02 15:53:30
nit: s/activation_id/request_id/
davve
2015/12/04 12:43:08
Done.
|
+ void OnDeactivate(int session_id, int deactivation_id); |
mlamouri (slow - plz ping)
2015/12/02 15:53:31
nit: s/deactivation_id/request_id/
davve
2015/12/04 12:43:08
Done.
|
+ |
+ int GetRoutingID() const; |
+ |
+ 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_ |