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

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 1880713002: media: Don't idle suspend the pipeline when in fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete newline Created 4 years, 8 months 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 | media/blink/webmediaplayer_impl.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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // TODO(hubbe): WMPI_CAST make private. 200 // TODO(hubbe): WMPI_CAST make private.
201 void OnPipelineSeeked(bool time_updated); 201 void OnPipelineSeeked(bool time_updated);
202 202
203 // Distinct states that |delegate_| can be in. 203 // Distinct states that |delegate_| can be in.
204 // TODO(sandersd): This should move into WebMediaPlayerDelegate. 204 // TODO(sandersd): This should move into WebMediaPlayerDelegate.
205 // (Public for testing.) 205 // (Public for testing.)
206 enum class DelegateState { 206 enum class DelegateState {
207 GONE, 207 GONE,
208 PLAYING, 208 PLAYING,
209 PAUSED, 209 PAUSED,
210 PAUSED_SEEK, 210 PAUSED_BUT_NOT_IDLE,
211 ENDED, 211 ENDED,
212 }; 212 };
213 213
214 // Playback state variables computed together in UpdatePlayState(). 214 // Playback state variables computed together in UpdatePlayState().
215 // (Public for testing.) 215 // (Public for testing.)
216 struct PlayState { 216 struct PlayState {
217 DelegateState delegate_state; 217 DelegateState delegate_state;
218 bool is_memory_reporting_enabled; 218 bool is_memory_reporting_enabled;
219 bool is_suspended; 219 bool is_suspended;
220 }; 220 };
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 // started; prevents us from spuriously logging errors that are transient or 489 // started; prevents us from spuriously logging errors that are transient or
490 // unimportant. 490 // unimportant.
491 bool suppress_destruction_errors_; 491 bool suppress_destruction_errors_;
492 492
493 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 493 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
494 }; 494 };
495 495
496 } // namespace media 496 } // namespace media
497 497
498 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 498 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698