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

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

Issue 2355143002: Merge M54: "Allow suspension prior to reaching kHaveFutureData." (Closed)
Patch Set: Created 4 years, 2 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
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 <memory> 10 #include <memory>
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // TODO(hubbe): WMPI_CAST make private. 210 // TODO(hubbe): WMPI_CAST make private.
211 void OnPipelineSeeked(bool time_updated); 211 void OnPipelineSeeked(bool time_updated);
212 212
213 // Distinct states that |delegate_| can be in. 213 // Distinct states that |delegate_| can be in.
214 // TODO(sandersd): This should move into WebMediaPlayerDelegate. 214 // TODO(sandersd): This should move into WebMediaPlayerDelegate.
215 // (Public for testing.) 215 // (Public for testing.)
216 enum class DelegateState { 216 enum class DelegateState {
217 GONE, 217 GONE,
218 PLAYING, 218 PLAYING,
219 PAUSED, 219 PAUSED,
220 PAUSED_BUT_NOT_IDLE,
221 ENDED, 220 ENDED,
222 }; 221 };
223 222
224 // Playback state variables computed together in UpdatePlayState(). 223 // Playback state variables computed together in UpdatePlayState().
225 // (Public for testing.) 224 // (Public for testing.)
226 struct PlayState { 225 struct PlayState {
227 DelegateState delegate_state; 226 DelegateState delegate_state;
228 bool is_memory_reporting_enabled; 227 bool is_memory_reporting_enabled;
229 bool is_suspended; 228 bool is_suspended;
230 }; 229 };
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 // Monitors the watch time of the played content. 539 // Monitors the watch time of the played content.
541 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; 540 std::unique_ptr<WatchTimeReporter> watch_time_reporter_;
542 bool is_encrypted_; 541 bool is_encrypted_;
543 542
544 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 543 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
545 }; 544 };
546 545
547 } // namespace media 546 } // namespace media
548 547
549 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 548 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698