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

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

Issue 1515623002: Media Session: passing metadata from renderer/ to browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session_ipc
Patch Set: semicolon Created 4 years, 11 months 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
« no previous file with comments | « no previous file | content/browser/media/android/browser_media_session_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace IPC { 10 namespace IPC {
11 class Message; 11 class Message;
12 } 12 }
13 13
14 namespace content { 14 namespace content {
15 15
16 class RenderFrameHost; 16 class RenderFrameHost;
17 struct MediaMetadata;
17 18
18 class BrowserMediaSessionManager { 19 class BrowserMediaSessionManager {
19 public: 20 public:
20 BrowserMediaSessionManager(RenderFrameHost* render_frame_host); 21 BrowserMediaSessionManager(RenderFrameHost* render_frame_host);
21 22
22 // Message handlers. 23 // Message handlers.
23 void OnActivate(int session_id, int request_id); 24 void OnActivate(int session_id, int request_id);
24 void OnDeactivate(int session_id, int request_id); 25 void OnDeactivate(int session_id, int request_id);
26 void OnSetMetadata(int session_id, const MediaMetadata& metadata);
25 27
26 int GetRoutingID() const; 28 int GetRoutingID() const;
27 29
28 bool Send(IPC::Message* msg); 30 bool Send(IPC::Message* msg);
29 31
30 private: 32 private:
31 RenderFrameHost* const render_frame_host_; 33 RenderFrameHost* const render_frame_host_;
32 34
33 DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager); 35 DISALLOW_COPY_AND_ASSIGN(BrowserMediaSessionManager);
34 }; 36 };
35 37
36 } // namespace content 38 } // namespace content
37 39
38 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_ 40 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/android/browser_media_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698