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_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // The fullscreen video view object or NULL if video is not played in | 213 // The fullscreen video view object or NULL if video is not played in |
214 // fullscreen. | 214 // fullscreen. |
215 scoped_ptr<ContentVideoView> video_view_; | 215 scoped_ptr<ContentVideoView> video_view_; |
216 | 216 |
217 // Player ID of the fullscreen media player. | 217 // Player ID of the fullscreen media player. |
218 int fullscreen_player_id_; | 218 int fullscreen_player_id_; |
219 | 219 |
220 // The player ID pending to enter fullscreen. | 220 // The player ID pending to enter fullscreen. |
221 int pending_fullscreen_player_id_; | 221 int pending_fullscreen_player_id_; |
222 | 222 |
| 223 // Whether the fullscreen player has been Release()-d. |
| 224 bool fullscreen_player_is_released_; |
| 225 |
223 WebContents* web_contents_; | 226 WebContents* web_contents_; |
224 | 227 |
225 // Object for retrieving resources media players. | 228 // Object for retrieving resources media players. |
226 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 229 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
227 | 230 |
228 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 231 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
229 | 232 |
230 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 233 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
231 }; | 234 }; |
232 | 235 |
233 } // namespace content | 236 } // namespace content |
234 | 237 |
235 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 238 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |