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 <unordered_map> | 9 #include <unordered_map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |