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

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: Add documentation, style fix and scoped_ptr 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698