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

Side by Side Diff: chrome/browser/media/android/remote/remote_media_player_manager.h

Issue 1570043002: Implement MediaSession on top of the WebMediaPlayerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session
Patch Set: Reorder. Created 4 years, 10 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 | chrome/browser/media/android/remote/remote_media_player_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Replaces the remote player with the local player this class is holding. 63 // Replaces the remote player with the local player this class is holding.
64 // Does nothing if there is no remote player. 64 // Does nothing if there is no remote player.
65 void ReplaceRemotePlayerWithLocal(int player_id); 65 void ReplaceRemotePlayerWithLocal(int player_id);
66 66
67 // content::BrowserMediaPlayerManager overrides. 67 // content::BrowserMediaPlayerManager overrides.
68 void OnStart(int player_id) override; 68 void OnStart(int player_id) override;
69 void OnInitialize( 69 void OnInitialize(
70 const MediaPlayerHostMsg_Initialize_Params& media_player_params) override; 70 const MediaPlayerHostMsg_Initialize_Params& media_player_params) override;
71 void OnDestroyPlayer(int player_id) override; 71 void OnDestroyPlayer(int player_id) override;
72 void OnSuspendAndReleaseResources(int player_id) override; 72 void OnSuspendAndReleaseResources(int player_id) override;
73 void OnSuspend(int player_id) override;
74 void OnResume(int player_id) override;
75 void OnRequestRemotePlayback(int player_id) override; 73 void OnRequestRemotePlayback(int player_id) override;
76 void OnRequestRemotePlaybackControl(int player_id) override; 74 void OnRequestRemotePlaybackControl(int player_id) override;
77 75
78 bool IsPlayingRemotely(int player_id) override; 76 bool IsPlayingRemotely(int player_id) override;
79 77
80 void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player) override; 78 void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player) override;
81 79
82 // Callback for when the download of poster image is done. 80 // Callback for when the download of poster image is done.
83 void DidDownloadPoster( 81 void DidDownloadPoster(
84 int player_id, 82 int player_id,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 std::unordered_map<int, GURL> poster_urls_; 115 std::unordered_map<int, GURL> poster_urls_;
118 116
119 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; 117 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_;
120 118
121 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); 119 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager);
122 }; 120 };
123 121
124 } // namespace remote_media 122 } // namespace remote_media
125 123
126 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 124 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/android/remote/remote_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698