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

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: Comments. Switch to mp3. 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
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 <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Replaces the remote player with the local player this class is holding. 62 // Replaces the remote player with the local player this class is holding.
63 // Does nothing if there is no remote player. 63 // Does nothing if there is no remote player.
64 void ReplaceRemotePlayerWithLocal(int player_id); 64 void ReplaceRemotePlayerWithLocal(int player_id);
65 65
66 // content::BrowserMediaPlayerManager overrides. 66 // content::BrowserMediaPlayerManager overrides.
67 void OnStart(int player_id) override; 67 void OnStart(int player_id) override;
68 void OnInitialize( 68 void OnInitialize(
69 const MediaPlayerHostMsg_Initialize_Params& media_player_params) override; 69 const MediaPlayerHostMsg_Initialize_Params& media_player_params) override;
70 void OnDestroyPlayer(int player_id) override; 70 void OnDestroyPlayer(int player_id) override;
71 void OnSuspendAndReleaseResources(int player_id) override; 71 void OnSuspendAndReleaseResources(int player_id) override;
72 void OnSuspend(int player_id) override;
73 void OnResume(int player_id) override;
74 void OnRequestRemotePlayback(int player_id) override; 72 void OnRequestRemotePlayback(int player_id) override;
75 void OnRequestRemotePlaybackControl(int player_id) override; 73 void OnRequestRemotePlaybackControl(int player_id) override;
76 74
77 bool IsPlayingRemotely(int player_id) override; 75 bool IsPlayingRemotely(int player_id) override;
78 76
79 void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player) override; 77 void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player) override;
80 78
81 // Callback for when the download of poster image is done. 79 // Callback for when the download of poster image is done.
82 void DidDownloadPoster( 80 void DidDownloadPoster(
83 int player_id, 81 int player_id,
(...skipping 29 matching lines...) Expand all
113 std::set<int> players_playing_remotely_; 111 std::set<int> players_playing_remotely_;
114 112
115 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; 113 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_;
116 114
117 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); 115 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager);
118 }; 116 };
119 117
120 } // namespace remote_media 118 } // namespace remote_media
121 119
122 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 120 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698