| 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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Getters of playback state. | 93 // Getters of playback state. |
| 94 virtual bool paused() const; | 94 virtual bool paused() const; |
| 95 virtual bool seeking() const; | 95 virtual bool seeking() const; |
| 96 virtual double duration() const; | 96 virtual double duration() const; |
| 97 virtual double currentTime() const; | 97 virtual double currentTime() const; |
| 98 | 98 |
| 99 // Internal states of loading and network. | 99 // Internal states of loading and network. |
| 100 virtual blink::WebMediaPlayer::NetworkState networkState() const; | 100 virtual blink::WebMediaPlayer::NetworkState networkState() const; |
| 101 virtual blink::WebMediaPlayer::ReadyState readyState() const; | 101 virtual blink::WebMediaPlayer::ReadyState readyState() const; |
| 102 | 102 |
| 103 // TODO(sandersd): Remove const version. |
| 104 // http://crbug.com/360251 |
| 103 virtual bool didLoadingProgress() const; | 105 virtual bool didLoadingProgress() const; |
| 106 virtual bool didLoadingProgress(); |
| 104 | 107 |
| 105 virtual bool hasSingleSecurityOrigin() const; | 108 virtual bool hasSingleSecurityOrigin() const; |
| 106 virtual bool didPassCORSAccessCheck() const; | 109 virtual bool didPassCORSAccessCheck() const; |
| 107 | 110 |
| 108 virtual double mediaTimeForTimeValue(double timeValue) const; | 111 virtual double mediaTimeForTimeValue(double timeValue) const; |
| 109 | 112 |
| 110 virtual unsigned decodedFrameCount() const; | 113 virtual unsigned decodedFrameCount() const; |
| 111 virtual unsigned droppedFrameCount() const; | 114 virtual unsigned droppedFrameCount() const; |
| 112 virtual unsigned audioDecodedByteCount() const; | 115 virtual unsigned audioDecodedByteCount() const; |
| 113 virtual unsigned videoDecodedByteCount() const; | 116 virtual unsigned videoDecodedByteCount() const; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; | 190 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; |
| 188 | 191 |
| 189 scoped_refptr<media::MediaLog> media_log_; | 192 scoped_refptr<media::MediaLog> media_log_; |
| 190 | 193 |
| 191 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 194 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 192 }; | 195 }; |
| 193 | 196 |
| 194 } // namespace content | 197 } // namespace content |
| 195 | 198 |
| 196 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 199 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |