OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 namespace IPC { |
| 11 class Message; |
| 12 } |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class RenderFrameHost; |
| 17 |
| 18 class BrowserMediaSessionManager { |
| 19 public: |
| 20 BrowserMediaSessionManager(RenderFrameHost* render_frame_host); |
| 21 |
| 22 // Message handlers. |
| 23 void OnActivate(int session_id, int request_id); |
| 24 void OnDeactivate(int session_id, int request_id); |
| 25 |
| 26 int GetRoutingID() const; |
| 27 |
| 28 bool Send(IPC::Message* msg); |
| 29 |
| 30 private: |
| 31 RenderFrameHost* const render_frame_host_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager); |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ |
OLD | NEW |