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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 double Duration() const override; | 151 double Duration() const override; |
152 virtual double timelineOffset() const; | 152 virtual double timelineOffset() const; |
153 double CurrentTime() const override; | 153 double CurrentTime() const override; |
154 | 154 |
155 // Internal states of loading and network. | 155 // Internal states of loading and network. |
156 // TODO(hclam): Ask the pipeline about the state rather than having reading | 156 // TODO(hclam): Ask the pipeline about the state rather than having reading |
157 // them from members which would cause race conditions. | 157 // them from members which would cause race conditions. |
158 blink::WebMediaPlayer::NetworkState GetNetworkState() const override; | 158 blink::WebMediaPlayer::NetworkState GetNetworkState() const override; |
159 blink::WebMediaPlayer::ReadyState GetReadyState() const override; | 159 blink::WebMediaPlayer::ReadyState GetReadyState() const override; |
160 | 160 |
161 blink::WebString GetErrorMessage() override; | 161 std::map<std::string, std::vector<std::string>> GetErrorMessages() |
| 162 const override; |
162 bool DidLoadingProgress() override; | 163 bool DidLoadingProgress() override; |
163 | 164 |
164 bool HasSingleSecurityOrigin() const override; | 165 bool HasSingleSecurityOrigin() const override; |
165 bool DidPassCORSAccessCheck() const override; | 166 bool DidPassCORSAccessCheck() const override; |
166 | 167 |
167 double MediaTimeForTimeValue(double timeValue) const override; | 168 double MediaTimeForTimeValue(double timeValue) const override; |
168 | 169 |
169 unsigned DecodedFrameCount() const override; | 170 unsigned DecodedFrameCount() const override; |
170 unsigned DroppedFrameCount() const override; | 171 unsigned DroppedFrameCount() const override; |
171 size_t AudioDecodedByteCount() const override; | 172 size_t AudioDecodedByteCount() const override; |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 base::TimeDelta last_uploaded_frame_timestamp_; | 714 base::TimeDelta last_uploaded_frame_timestamp_; |
714 | 715 |
715 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; | 716 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; |
716 | 717 |
717 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 718 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
718 }; | 719 }; |
719 | 720 |
720 } // namespace media | 721 } // namespace media |
721 | 722 |
722 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 723 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |