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/macros.h" | 10 #include "base/macros.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Getters of playback state. | 120 // Getters of playback state. |
121 bool paused() const override; | 121 bool paused() const override; |
122 bool seeking() const override; | 122 bool seeking() const override; |
123 double duration() const override; | 123 double duration() const override; |
124 double currentTime() const override; | 124 double currentTime() const override; |
125 | 125 |
126 // Internal states of loading and network. | 126 // Internal states of loading and network. |
127 blink::WebMediaPlayer::NetworkState getNetworkState() const override; | 127 blink::WebMediaPlayer::NetworkState getNetworkState() const override; |
128 blink::WebMediaPlayer::ReadyState getReadyState() const override; | 128 blink::WebMediaPlayer::ReadyState getReadyState() const override; |
129 | 129 |
| 130 blink::WebString getErrorMessage() override; |
130 bool didLoadingProgress() override; | 131 bool didLoadingProgress() override; |
131 | 132 |
132 bool hasSingleSecurityOrigin() const override; | 133 bool hasSingleSecurityOrigin() const override; |
133 bool didPassCORSAccessCheck() const override; | 134 bool didPassCORSAccessCheck() const override; |
134 | 135 |
135 double mediaTimeForTimeValue(double timeValue) const override; | 136 double mediaTimeForTimeValue(double timeValue) const override; |
136 | 137 |
137 unsigned decodedFrameCount() const override; | 138 unsigned decodedFrameCount() const override; |
138 unsigned droppedFrameCount() const override; | 139 unsigned droppedFrameCount() const override; |
139 size_t audioDecodedByteCount() const override; | 140 size_t audioDecodedByteCount() const override; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // True if playback should be started upon the next call to OnShown(). Only | 232 // True if playback should be started upon the next call to OnShown(). Only |
232 // used on Android. | 233 // used on Android. |
233 bool should_play_upon_shown_; | 234 bool should_play_upon_shown_; |
234 | 235 |
235 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 236 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
236 }; | 237 }; |
237 | 238 |
238 } // namespace content | 239 } // namespace content |
239 | 240 |
240 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 241 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |