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 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 Loading... |
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 Loading... |
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_ |
OLD | NEW |