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 #include <vector> | 10 #include <vector> |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void OnMediaError(int player_id, int error); | 151 void OnMediaError(int player_id, int error); |
152 void OnVideoSizeChanged(int player_id, int width, int height); | 152 void OnVideoSizeChanged(int player_id, int width, int height); |
153 void OnTimeUpdate(int player_id, base::TimeDelta current_time); | 153 void OnTimeUpdate(int player_id, base::TimeDelta current_time); |
154 void OnMediaPlayerReleased(int player_id); | 154 void OnMediaPlayerReleased(int player_id); |
155 void OnConnectedToRemoteDevice(int player_id); | 155 void OnConnectedToRemoteDevice(int player_id); |
156 void OnDisconnectedFromRemoteDevice(int player_id); | 156 void OnDisconnectedFromRemoteDevice(int player_id); |
157 void OnDidExitFullscreen(int player_id); | 157 void OnDidExitFullscreen(int player_id); |
158 void OnDidEnterFullscreen(int player_id); | 158 void OnDidEnterFullscreen(int player_id); |
159 void OnPlayerPlay(int player_id); | 159 void OnPlayerPlay(int player_id); |
160 void OnPlayerPause(int player_id); | 160 void OnPlayerPause(int player_id); |
| 161 void OnRequestFullscreen(int player_id); |
161 void OnKeyAdded(int media_keys_id, const std::string& session_id); | 162 void OnKeyAdded(int media_keys_id, const std::string& session_id); |
162 void OnKeyError(int media_keys_id, | 163 void OnKeyError(int media_keys_id, |
163 const std::string& session_id, | 164 const std::string& session_id, |
164 media::MediaKeys::KeyError error_code, | 165 media::MediaKeys::KeyError error_code, |
165 int system_code); | 166 int system_code); |
166 void OnKeyMessage(int media_keys_id, | 167 void OnKeyMessage(int media_keys_id, |
167 const std::string& session_id, | 168 const std::string& session_id, |
168 const std::vector<uint8>& message, | 169 const std::vector<uint8>& message, |
169 const std::string& destination_url); | 170 const std::string& destination_url); |
170 | 171 |
171 // Info for all available WebMediaPlayerAndroid on a page; kept so that | 172 // Info for all available WebMediaPlayerAndroid on a page; kept so that |
172 // we can enumerate them to send updates about tab focus and visibility. | 173 // we can enumerate them to send updates about tab focus and visibility. |
173 std::map<int, WebMediaPlayerAndroid*> media_players_; | 174 std::map<int, WebMediaPlayerAndroid*> media_players_; |
174 | 175 |
175 // Info for all available ProxyMediaKeys. There must be at most one | 176 // Info for all available ProxyMediaKeys. There must be at most one |
176 // ProxyMediaKeys for each available WebMediaPlayerAndroid. | 177 // ProxyMediaKeys for each available WebMediaPlayerAndroid. |
177 std::map<int, ProxyMediaKeys*> media_keys_; | 178 std::map<int, ProxyMediaKeys*> media_keys_; |
178 | 179 |
179 int next_media_player_id_; | 180 int next_media_player_id_; |
180 | 181 |
181 // WebFrame of the fullscreen video. | 182 // WebFrame of the fullscreen video. |
182 blink::WebFrame* fullscreen_frame_; | 183 blink::WebFrame* fullscreen_frame_; |
183 | 184 |
184 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 185 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
185 }; | 186 }; |
186 | 187 |
187 } // namespace content | 188 } // namespace content |
188 | 189 |
189 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 190 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |