Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Side by Side Diff: content/browser/media/android/browser_media_session_manager.cc

Issue 1441883003: Hook up RendererMediaSessionManager with browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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) {
mlamouri (slow - plz ping) 2015/12/02 15:53:30 nit: ditto
davve 2015/12/04 12:43:08 Done.
17 NOTIMPLEMENTED();
18 Send(new MediaSessionMsg_DidActivate(GetRoutingID(), session_id,
19 activation_id, false));
20 }
21
22 void BrowserMediaSessionManager::OnDeactivate(int session_id,
23 int deactivation_id) {
mlamouri (slow - plz ping) 2015/12/02 15:53:30 nit: ditto
davve 2015/12/04 12:43:08 Done.
24 NOTIMPLEMENTED();
25 Send(new MediaSessionMsg_DidDeactivate(GetRoutingID(), session_id,
26 deactivation_id));
27 }
28
29 int BrowserMediaSessionManager::GetRoutingID() const {
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698