| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 bool is_suspended; | 244 bool is_suspended; |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 private: | 247 private: |
| 248 friend class WebMediaPlayerImplTest; | 248 friend class WebMediaPlayerImplTest; |
| 249 | 249 |
| 250 void EnableOverlay(); | 250 void EnableOverlay(); |
| 251 void DisableOverlay(); | 251 void DisableOverlay(); |
| 252 | 252 |
| 253 void OnPipelineSuspended(); | 253 void OnPipelineSuspended(); |
| 254 void OnPipelineResumed(); |
| 254 void OnDemuxerOpened(); | 255 void OnDemuxerOpened(); |
| 255 | 256 |
| 256 // Pipeline::Client overrides. | 257 // Pipeline::Client overrides. |
| 257 void OnError(PipelineStatus status) override; | 258 void OnError(PipelineStatus status) override; |
| 258 void OnEnded() override; | 259 void OnEnded() override; |
| 259 void OnMetadata(PipelineMetadata metadata) override; | 260 void OnMetadata(PipelineMetadata metadata) override; |
| 260 void OnBufferingStateChange(BufferingState state) override; | 261 void OnBufferingStateChange(BufferingState state) override; |
| 261 void OnDurationChange() override; | 262 void OnDurationChange() override; |
| 262 void OnAddTextTrack(const TextTrackConfig& config, | 263 void OnAddTextTrack(const TextTrackConfig& config, |
| 263 const AddTextTrackDoneCB& done_cb) override; | 264 const AddTextTrackDoneCB& done_cb) override; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 base::TimeTicks last_time_loading_progressed_; | 586 base::TimeTicks last_time_loading_progressed_; |
| 586 | 587 |
| 587 std::unique_ptr<base::TickClock> tick_clock_; | 588 std::unique_ptr<base::TickClock> tick_clock_; |
| 588 | 589 |
| 589 // Monitors the player events. | 590 // Monitors the player events. |
| 590 base::WeakPtr<MediaObserver> observer_; | 591 base::WeakPtr<MediaObserver> observer_; |
| 591 | 592 |
| 592 // Whether the player is currently in autoplay muted state. | 593 // Whether the player is currently in autoplay muted state. |
| 593 bool autoplay_muted_ = false; | 594 bool autoplay_muted_ = false; |
| 594 | 595 |
| 596 // Whether disabled the video track as an optimization. |
| 597 bool video_track_disabled_ = false; |
| 598 |
| 595 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 599 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 596 }; | 600 }; |
| 597 | 601 |
| 598 } // namespace media | 602 } // namespace media |
| 599 | 603 |
| 600 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 604 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |