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 #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 request_id) { | |
| 17 NOTIMPLEMENTED(); | |
|
Mike West
2015/12/09 17:39:59
What are these eventually going to do? It's diffic
davve
2015/12/10 08:28:38
I can't blame you. :) (To some extent considering
| |
| 18 Send(new MediaSessionMsg_DidActivate(GetRoutingID(), request_id, false)); | |
| 19 } | |
| 20 | |
| 21 void BrowserMediaSessionManager::OnDeactivate(int session_id, int request_id) { | |
| 22 NOTIMPLEMENTED(); | |
| 23 Send(new MediaSessionMsg_DidDeactivate(GetRoutingID(), request_id)); | |
| 24 } | |
| 25 | |
| 26 int BrowserMediaSessionManager::GetRoutingID() const { | |
| 27 return render_frame_host_->GetRoutingID(); | |
| 28 } | |
| 29 | |
| 30 bool BrowserMediaSessionManager::Send(IPC::Message* msg) { | |
| 31 return render_frame_host_->Send(msg); | |
| 32 } | |
| 33 | |
| 34 } // namespace content | |
| OLD | NEW |