Chromium Code Reviews| 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 #include "ipc/ipc_message.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 class RenderFrameHost; | |
| 14 | |
| 15 class BrowserMediaSessionManager { | |
| 16 public: | |
| 17 BrowserMediaSessionManager(RenderFrameHost* render_frame_host); | |
| 18 | |
| 19 // Message handlers. | |
| 20 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.
| |
| 21 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.
| |
| 22 | |
| 23 int GetRoutingID() const; | |
| 24 | |
| 25 bool Send(IPC::Message* msg); | |
| 26 | |
| 27 private: | |
| 28 RenderFrameHost* const render_frame_host_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager); | |
| 31 }; | |
| 32 | |
| 33 } // namespace content | |
| 34 | |
| 35 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ | |
| OLD | NEW |