| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual bool hasVideo() const; | 100 virtual bool hasVideo() const; |
| 101 virtual bool hasAudio() const; | 101 virtual bool hasAudio() const; |
| 102 | 102 |
| 103 // Dimensions of the video. | 103 // Dimensions of the video. |
| 104 virtual blink::WebSize naturalSize() const; | 104 virtual blink::WebSize naturalSize() const; |
| 105 | 105 |
| 106 // Getters of playback state. | 106 // Getters of playback state. |
| 107 virtual bool paused() const; | 107 virtual bool paused() const; |
| 108 virtual bool seeking() const; | 108 virtual bool seeking() const; |
| 109 virtual double duration() const; | 109 virtual double duration() const; |
| 110 virtual double timelineOffset() const; |
| 110 virtual double currentTime() const; | 111 virtual double currentTime() const; |
| 111 | 112 |
| 112 // Internal states of loading and network. | 113 // Internal states of loading and network. |
| 113 // TODO(hclam): Ask the pipeline about the state rather than having reading | 114 // TODO(hclam): Ask the pipeline about the state rather than having reading |
| 114 // them from members which would cause race conditions. | 115 // them from members which would cause race conditions. |
| 115 virtual blink::WebMediaPlayer::NetworkState networkState() const; | 116 virtual blink::WebMediaPlayer::NetworkState networkState() const; |
| 116 virtual blink::WebMediaPlayer::ReadyState readyState() const; | 117 virtual blink::WebMediaPlayer::ReadyState readyState() const; |
| 117 | 118 |
| 118 // TODO(sandersd): Change this to non-const in blink::WebMediaPlayer. | 119 // TODO(sandersd): Change this to non-const in blink::WebMediaPlayer. |
| 119 // http://crbug.com/360251 | 120 // http://crbug.com/360251 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 WebContentDecryptionModuleImpl* web_cdm_; | 348 WebContentDecryptionModuleImpl* web_cdm_; |
| 348 | 349 |
| 349 media::DecryptorReadyCB decryptor_ready_cb_; | 350 media::DecryptorReadyCB decryptor_ready_cb_; |
| 350 | 351 |
| 351 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 352 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 } // namespace content | 355 } // namespace content |
| 355 | 356 |
| 356 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 357 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |