| 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 CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 base::TimeTicks current_time_ticks); | 134 base::TimeTicks current_time_ticks); |
| 135 void OnWaitingForDecryptionKey(int player_id); | 135 void OnWaitingForDecryptionKey(int player_id); |
| 136 void OnMediaPlayerReleased(int player_id); | 136 void OnMediaPlayerReleased(int player_id); |
| 137 void OnConnectedToRemoteDevice(int player_id, | 137 void OnConnectedToRemoteDevice(int player_id, |
| 138 const std::string& remote_playback_message); | 138 const std::string& remote_playback_message); |
| 139 void OnDisconnectedFromRemoteDevice(int player_id); | 139 void OnDisconnectedFromRemoteDevice(int player_id); |
| 140 void OnDidExitFullscreen(int player_id); | 140 void OnDidExitFullscreen(int player_id); |
| 141 void OnDidEnterFullscreen(int player_id); | 141 void OnDidEnterFullscreen(int player_id); |
| 142 void OnPlayerPlay(int player_id); | 142 void OnPlayerPlay(int player_id); |
| 143 void OnPlayerPause(int player_id); | 143 void OnPlayerPause(int player_id); |
| 144 void OnRequestFullscreen(int player_id); | |
| 145 void OnRemoteRouteAvailabilityChanged(int player_id, bool routes_available); | 144 void OnRemoteRouteAvailabilityChanged(int player_id, bool routes_available); |
| 146 | 145 |
| 147 // Release all video player resources. | 146 // Release all video player resources. |
| 148 // If something is in progress the resource will not be freed. It will | 147 // If something is in progress the resource will not be freed. It will |
| 149 // only be freed once the tab is destroyed or if the user navigates away | 148 // only be freed once the tab is destroyed or if the user navigates away |
| 150 // via WebMediaPlayerAndroid::Destroy. | 149 // via WebMediaPlayerAndroid::Destroy. |
| 151 void ReleaseVideoResources(); | 150 void ReleaseVideoResources(); |
| 152 | 151 |
| 153 // Info for all available WebMediaPlayerAndroid on a page; kept so that | 152 // Info for all available WebMediaPlayerAndroid on a page; kept so that |
| 154 // we can enumerate them to send updates about tab focus and visibility. | 153 // we can enumerate them to send updates about tab focus and visibility. |
| 155 std::map<int, WebMediaPlayerAndroid*> media_players_; | 154 std::map<int, WebMediaPlayerAndroid*> media_players_; |
| 156 | 155 |
| 157 int next_media_player_id_; | 156 int next_media_player_id_; |
| 158 | 157 |
| 159 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 158 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 160 }; | 159 }; |
| 161 | 160 |
| 162 } // namespace content | 161 } // namespace content |
| 163 | 162 |
| 164 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 163 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |