| 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_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // True if the loaded media has a playable video/audio track. | 106 // True if the loaded media has a playable video/audio track. |
| 107 bool hasVideo() const override; | 107 bool hasVideo() const override; |
| 108 bool hasAudio() const override; | 108 bool hasAudio() const override; |
| 109 | 109 |
| 110 // Dimensions of the video. | 110 // Dimensions of the video. |
| 111 blink::WebSize naturalSize() const override; | 111 blink::WebSize naturalSize() const override; |
| 112 | 112 |
| 113 // Getters of playback state. | 113 // Getters of playback state. |
| 114 bool paused() const override; | 114 bool paused() const override; |
| 115 bool seeking() const override; | 115 bool seeking() const override; |
| 116 double earliestTime() const override; |
| 116 double duration() const override; | 117 double duration() const override; |
| 117 double currentTime() const override; | 118 double currentTime() const override; |
| 118 | 119 |
| 119 // Internal states of loading and network. | 120 // Internal states of loading and network. |
| 120 blink::WebMediaPlayer::NetworkState networkState() const override; | 121 blink::WebMediaPlayer::NetworkState networkState() const override; |
| 121 blink::WebMediaPlayer::ReadyState readyState() const override; | 122 blink::WebMediaPlayer::ReadyState readyState() const override; |
| 122 | 123 |
| 123 bool didLoadingProgress() override; | 124 bool didLoadingProgress() override; |
| 124 | 125 |
| 125 bool hasSingleSecurityOrigin() const override; | 126 bool hasSingleSecurityOrigin() const override; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 199 |
| 199 const std::string initial_audio_output_device_id_; | 200 const std::string initial_audio_output_device_id_; |
| 200 const url::Origin initial_security_origin_; | 201 const url::Origin initial_security_origin_; |
| 201 | 202 |
| 202 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 203 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 } // namespace content | 206 } // namespace content |
| 206 | 207 |
| 207 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 208 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |