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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |