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 #include "content/browser/media/android/browser_media_session_manager.h" |
| 6 |
| 7 #include "content/common/media/media_session_messages_android.h" |
| 8 #include "content/public/browser/render_frame_host.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 BrowserMediaSessionManager::BrowserMediaSessionManager( |
| 13 RenderFrameHost* render_frame_host) |
| 14 : render_frame_host_(render_frame_host) {} |
| 15 |
| 16 void BrowserMediaSessionManager::OnActivate(int session_id, int activation_id) { |
| 17 NOTIMPLEMENTED(); |
| 18 Send(new MediaSessionMsg_DidActivate(RoutingID(), session_id, activation_id, |
| 19 false)); |
| 20 } |
| 21 |
| 22 void BrowserMediaSessionManager::OnDeactivate(int session_id, |
| 23 int deactivation_id) { |
| 24 NOTIMPLEMENTED(); |
| 25 Send(new MediaSessionMsg_DidDeactivate(RoutingID(), session_id, |
| 26 deactivation_id)); |
| 27 } |
| 28 |
| 29 int BrowserMediaSessionManager::RoutingID() { |
| 30 return render_frame_host_->GetRoutingID(); |
| 31 } |
| 32 |
| 33 bool BrowserMediaSessionManager::Send(IPC::Message* msg) { |
| 34 return render_frame_host_->Send(msg); |
| 35 } |
| 36 |
| 37 } // namespace content |
OLD | NEW |