| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 void OnError(PipelineStatus status) override; | 257 void OnError(PipelineStatus status) override; |
| 258 void OnEnded() override; | 258 void OnEnded() override; |
| 259 void OnMetadata(PipelineMetadata metadata) override; | 259 void OnMetadata(PipelineMetadata metadata) override; |
| 260 void OnBufferingStateChange(BufferingState state) override; | 260 void OnBufferingStateChange(BufferingState state) override; |
| 261 void OnDurationChange() override; | 261 void OnDurationChange() override; |
| 262 void OnAddTextTrack(const TextTrackConfig& config, | 262 void OnAddTextTrack(const TextTrackConfig& config, |
| 263 const AddTextTrackDoneCB& done_cb) override; | 263 const AddTextTrackDoneCB& done_cb) override; |
| 264 void OnWaitingForDecryptionKey() override; | 264 void OnWaitingForDecryptionKey() override; |
| 265 void OnVideoNaturalSizeChange(const gfx::Size& size) override; | 265 void OnVideoNaturalSizeChange(const gfx::Size& size) override; |
| 266 void OnVideoOpacityChange(bool opaque) override; | 266 void OnVideoOpacityChange(bool opaque) override; |
| 267 void OnVideoAverageKeyframeDistanceUpdate() override; |
| 267 | 268 |
| 268 // Actually seek. Avoids causing |should_notify_time_changed_| to be set when | 269 // Actually seek. Avoids causing |should_notify_time_changed_| to be set when |
| 269 // |time_updated| is false. | 270 // |time_updated| is false. |
| 270 void DoSeek(base::TimeDelta time, bool time_updated); | 271 void DoSeek(base::TimeDelta time, bool time_updated); |
| 271 | 272 |
| 272 // Called after |defer_load_cb_| has decided to allow the load. If | 273 // Called after |defer_load_cb_| has decided to allow the load. If |
| 273 // |defer_load_cb_| is null this is called immediately. | 274 // |defer_load_cb_| is null this is called immediately. |
| 274 void DoLoad(LoadType load_type, | 275 void DoLoad(LoadType load_type, |
| 275 const blink::WebURL& url, | 276 const blink::WebURL& url, |
| 276 CORSMode cors_mode); | 277 CORSMode cors_mode); |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 | 683 |
| 683 // Pipeline media duration overridden by tests. | 684 // Pipeline media duration overridden by tests. |
| 684 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_; | 685 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_; |
| 685 | 686 |
| 686 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 687 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 687 }; | 688 }; |
| 688 | 689 |
| 689 } // namespace media | 690 } // namespace media |
| 690 | 691 |
| 691 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 692 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |