| 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // TODO(scherkus): since SetPlaybackRate(0) is asynchronous and we don't want | 258 // TODO(scherkus): since SetPlaybackRate(0) is asynchronous and we don't want |
| 259 // to hang the render thread during pause(), we record the time at the same | 259 // to hang the render thread during pause(), we record the time at the same |
| 260 // time we pause and then return that value in currentTime(). Otherwise our | 260 // time we pause and then return that value in currentTime(). Otherwise our |
| 261 // clock can creep forward a little bit while the asynchronous | 261 // clock can creep forward a little bit while the asynchronous |
| 262 // SetPlaybackRate(0) is being executed. | 262 // SetPlaybackRate(0) is being executed. |
| 263 bool paused_; | 263 bool paused_; |
| 264 bool seeking_; | 264 bool seeking_; |
| 265 double playback_rate_; | 265 double playback_rate_; |
| 266 base::TimeDelta paused_time_; | 266 base::TimeDelta paused_time_; |
| 267 | 267 |
| 268 // TODO(scherkus): Replace with an explicit ended signal to HTMLMediaElement, |
| 269 // see http://crbug.com/409280 |
| 270 bool ended_; |
| 271 |
| 268 // Seek gets pending if another seek is in progress. Only last pending seek | 272 // Seek gets pending if another seek is in progress. Only last pending seek |
| 269 // will have effect. | 273 // will have effect. |
| 270 bool pending_seek_; | 274 bool pending_seek_; |
| 271 double pending_seek_seconds_; | 275 double pending_seek_seconds_; |
| 272 | 276 |
| 273 // Tracks whether to issue time changed notifications during buffering state | 277 // Tracks whether to issue time changed notifications during buffering state |
| 274 // changes. | 278 // changes. |
| 275 bool should_notify_time_changed_; | 279 bool should_notify_time_changed_; |
| 276 | 280 |
| 277 blink::WebMediaPlayerClient* client_; | 281 blink::WebMediaPlayerClient* client_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; | 319 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; |
| 316 | 320 |
| 317 const media::AudioHardwareConfig& audio_hardware_config_; | 321 const media::AudioHardwareConfig& audio_hardware_config_; |
| 318 | 322 |
| 319 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 323 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 320 }; | 324 }; |
| 321 | 325 |
| 322 } // namespace content | 326 } // namespace content |
| 323 | 327 |
| 324 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 328 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |