| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Getters of playback state. | 123 // Getters of playback state. |
| 124 bool Paused() const override; | 124 bool Paused() const override; |
| 125 bool Seeking() const override; | 125 bool Seeking() const override; |
| 126 double Duration() const override; | 126 double Duration() const override; |
| 127 double CurrentTime() const override; | 127 double CurrentTime() const override; |
| 128 | 128 |
| 129 // Internal states of loading and network. | 129 // Internal states of loading and network. |
| 130 blink::WebMediaPlayer::NetworkState GetNetworkState() const override; | 130 blink::WebMediaPlayer::NetworkState GetNetworkState() const override; |
| 131 blink::WebMediaPlayer::ReadyState GetReadyState() const override; | 131 blink::WebMediaPlayer::ReadyState GetReadyState() const override; |
| 132 | 132 |
| 133 blink::WebString GetErrorMessage() override; | 133 std::map<std::string, std::vector<std::string>> GetErrorMessages() |
| 134 const override; |
| 134 bool DidLoadingProgress() override; | 135 bool DidLoadingProgress() override; |
| 135 | 136 |
| 136 bool HasSingleSecurityOrigin() const override; | 137 bool HasSingleSecurityOrigin() const override; |
| 137 bool DidPassCORSAccessCheck() const override; | 138 bool DidPassCORSAccessCheck() const override; |
| 138 | 139 |
| 139 double MediaTimeForTimeValue(double timeValue) const override; | 140 double MediaTimeForTimeValue(double timeValue) const override; |
| 140 | 141 |
| 141 unsigned DecodedFrameCount() const override; | 142 unsigned DecodedFrameCount() const override; |
| 142 unsigned DroppedFrameCount() const override; | 143 unsigned DroppedFrameCount() const override; |
| 143 size_t AudioDecodedByteCount() const override; | 144 size_t AudioDecodedByteCount() const override; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // True if playback should be started upon the next call to OnShown(). Only | 259 // True if playback should be started upon the next call to OnShown(). Only |
| 259 // used on Android. | 260 // used on Android. |
| 260 bool should_play_upon_shown_; | 261 bool should_play_upon_shown_; |
| 261 | 262 |
| 262 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 263 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 } // namespace content | 266 } // namespace content |
| 266 | 267 |
| 267 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 268 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |