| 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 blink::WebString GetErrorMessage() const override; |
| 162 bool DidLoadingProgress() override; | 162 bool DidLoadingProgress() override; |
| 163 | 163 |
| 164 bool HasSingleSecurityOrigin() const override; | 164 bool HasSingleSecurityOrigin() const override; |
| 165 bool DidPassCORSAccessCheck() const override; | 165 bool DidPassCORSAccessCheck() const override; |
| 166 | 166 |
| 167 double MediaTimeForTimeValue(double timeValue) const override; | 167 double MediaTimeForTimeValue(double timeValue) const override; |
| 168 | 168 |
| 169 unsigned DecodedFrameCount() const override; | 169 unsigned DecodedFrameCount() const override; |
| 170 unsigned DroppedFrameCount() const override; | 170 unsigned DroppedFrameCount() const override; |
| 171 size_t AudioDecodedByteCount() const override; | 171 size_t AudioDecodedByteCount() const override; |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; | 724 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; |
| 725 | 725 |
| 726 bool initial_video_height_recorded_ = false; | 726 bool initial_video_height_recorded_ = false; |
| 727 | 727 |
| 728 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 728 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 729 }; | 729 }; |
| 730 | 730 |
| 731 } // namespace media | 731 } // namespace media |
| 732 | 732 |
| 733 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 733 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |