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

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

Issue 81693003: Release media player resources when device is locked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 1 more typo 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
« no previous file with comments | « no previous file | content/browser/media/android/browser_media_player_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/android/browser_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698