Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: content/browser/media/android/browser_media_player_manager.h

Issue 103583005: Restart fullscreen video playback when switching back from background (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed one more buggy line and the fullscreen_player_is_released_ member which is not necessary now Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
226 WebContents* web_contents_; 223 WebContents* web_contents_;
227 224
228 // Object for retrieving resources media players. 225 // Object for retrieving resources media players.
229 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; 226 scoped_ptr<media::MediaResourceGetter> media_resource_getter_;
230 227
231 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; 228 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_;
232 229
233 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); 230 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager);
234 }; 231 };
235 232
236 } // namespace content 233 } // namespace content
237 234
238 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 235 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698