| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // True if the loaded media has a playable video/audio track. | 107 // True if the loaded media has a playable video/audio track. |
| 108 bool hasVideo() const override; | 108 bool hasVideo() const override; |
| 109 bool hasAudio() const override; | 109 bool hasAudio() const override; |
| 110 | 110 |
| 111 // Dimensions of the video. | 111 // Dimensions of the video. |
| 112 blink::WebSize naturalSize() const override; | 112 blink::WebSize naturalSize() const override; |
| 113 | 113 |
| 114 // Getters of playback state. | 114 // Getters of playback state. |
| 115 bool paused() const override; | 115 bool paused() const override; |
| 116 bool seeking() const override; | 116 bool seeking() const override; |
| 117 double earliestTime() const override; |
| 117 double duration() const override; | 118 double duration() const override; |
| 118 virtual double timelineOffset() const; | 119 virtual double timelineOffset() const; |
| 119 double currentTime() const override; | 120 double currentTime() const override; |
| 120 | 121 |
| 121 // Internal states of loading and network. | 122 // Internal states of loading and network. |
| 122 // TODO(hclam): Ask the pipeline about the state rather than having reading | 123 // TODO(hclam): Ask the pipeline about the state rather than having reading |
| 123 // them from members which would cause race conditions. | 124 // them from members which would cause race conditions. |
| 124 blink::WebMediaPlayer::NetworkState networkState() const override; | 125 blink::WebMediaPlayer::NetworkState networkState() const override; |
| 125 blink::WebMediaPlayer::ReadyState readyState() const override; | 126 blink::WebMediaPlayer::ReadyState readyState() const override; |
| 126 | 127 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; | 343 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; |
| 343 | 344 |
| 344 scoped_ptr<RendererFactory> renderer_factory_; | 345 scoped_ptr<RendererFactory> renderer_factory_; |
| 345 | 346 |
| 346 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 347 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 347 }; | 348 }; |
| 348 | 349 |
| 349 } // namespace media | 350 } // namespace media |
| 350 | 351 |
| 351 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 352 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |