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

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

Powered by Google App Engine
This is Rietveld 408576698