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