OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |