| 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 <string> | 10 #include <string> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Getters of playback state. | 126 // Getters of playback state. |
| 127 bool paused() const override; | 127 bool paused() const override; |
| 128 bool seeking() const override; | 128 bool seeking() const override; |
| 129 double duration() const override; | 129 double duration() const override; |
| 130 virtual double timelineOffset() const; | 130 virtual double timelineOffset() const; |
| 131 double currentTime() const override; | 131 double currentTime() const override; |
| 132 | 132 |
| 133 // Internal states of loading and network. | 133 // Internal states of loading and network. |
| 134 // TODO(hclam): Ask the pipeline about the state rather than having reading | 134 // TODO(hclam): Ask the pipeline about the state rather than having reading |
| 135 // them from members which would cause race conditions. | 135 // them from members which would cause race conditions. |
| 136 blink::WebMediaPlayer::NetworkState networkState() const override; | 136 blink::WebMediaPlayer::NetworkState getNetworkState() const override; |
| 137 blink::WebMediaPlayer::ReadyState readyState() const override; | 137 blink::WebMediaPlayer::ReadyState getReadyState() const override; |
| 138 | 138 |
| 139 bool didLoadingProgress() override; | 139 bool didLoadingProgress() override; |
| 140 | 140 |
| 141 bool hasSingleSecurityOrigin() const override; | 141 bool hasSingleSecurityOrigin() const override; |
| 142 bool didPassCORSAccessCheck() const override; | 142 bool didPassCORSAccessCheck() const override; |
| 143 | 143 |
| 144 double mediaTimeForTimeValue(double timeValue) const override; | 144 double mediaTimeForTimeValue(double timeValue) const override; |
| 145 | 145 |
| 146 unsigned decodedFrameCount() const override; | 146 unsigned decodedFrameCount() const override; |
| 147 unsigned droppedFrameCount() const override; | 147 unsigned droppedFrameCount() const override; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen. | 453 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen. |
| 454 // This will be null everywhere but Android. | 454 // This will be null everywhere but Android. |
| 455 SurfaceManager* surface_manager_; | 455 SurfaceManager* surface_manager_; |
| 456 | 456 |
| 457 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 457 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 458 }; | 458 }; |
| 459 | 459 |
| 460 } // namespace media | 460 } // namespace media |
| 461 | 461 |
| 462 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 462 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |