OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ |
6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ | 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/optional.h" | 9 #include "base/optional.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class CONTENT_EXPORT BrowserMediaSessionManager { | 21 class CONTENT_EXPORT BrowserMediaSessionManager { |
22 public: | 22 public: |
23 explicit BrowserMediaSessionManager(RenderFrameHost* render_frame_host); | 23 explicit BrowserMediaSessionManager(RenderFrameHost* render_frame_host); |
24 | 24 |
25 // Message handlers. | 25 // Message handlers. |
26 virtual void OnActivate(int session_id, int request_id); | 26 virtual void OnActivate(int session_id, int request_id); |
27 virtual void OnDeactivate(int session_id, int request_id); | 27 virtual void OnDeactivate(int session_id, int request_id); |
28 virtual void OnSetMetadata( | 28 virtual void OnSetMetadata( |
29 int session_id, const base::Optional<MediaMetadata>& metadata); | 29 int session_id, const base::Optional<MediaMetadata>& metadata); |
30 | 30 |
31 int GetRoutingID() const; | |
32 | |
33 bool Send(IPC::Message* msg); | |
34 | |
35 private: | 31 private: |
36 RenderFrameHost* const render_frame_host_; | 32 RenderFrameHost* const render_frame_host_; |
37 | 33 |
38 DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager); | 34 DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager); |
39 }; | 35 }; |
40 | 36 |
41 } // namespace content | 37 } // namespace content |
42 | 38 |
43 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ | 39 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ |
OLD | NEW |