| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/cancelable_callback.h" | 14 #include "base/cancelable_callback.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| 20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
| 21 #include "base/timer/elapsed_timer.h" |
| 21 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
| 22 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 23 #include "media/base/media_tracks.h" | 24 #include "media/base/media_tracks.h" |
| 24 #include "media/base/pipeline_impl.h" | 25 #include "media/base/pipeline_impl.h" |
| 25 #include "media/base/renderer_factory.h" | 26 #include "media/base/renderer_factory.h" |
| 26 #include "media/base/surface_manager.h" | 27 #include "media/base/surface_manager.h" |
| 27 #include "media/base/text_track.h" | 28 #include "media/base/text_track.h" |
| 28 #include "media/blink/buffered_data_source_host_impl.h" | 29 #include "media/blink/buffered_data_source_host_impl.h" |
| 29 #include "media/blink/media_blink_export.h" | 30 #include "media/blink/media_blink_export.h" |
| 30 #include "media/blink/multibuffer_data_source.h" | 31 #include "media/blink/multibuffer_data_source.h" |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 CanSuspendState can_suspend_state_; | 535 CanSuspendState can_suspend_state_; |
| 535 | 536 |
| 536 // Called some-time after OnHidden() if the media was suspended in a playing | 537 // Called some-time after OnHidden() if the media was suspended in a playing |
| 537 // state as part of the call to OnHidden(). | 538 // state as part of the call to OnHidden(). |
| 538 base::OneShotTimer background_pause_timer_; | 539 base::OneShotTimer background_pause_timer_; |
| 539 | 540 |
| 540 // Monitors the watch time of the played content. | 541 // Monitors the watch time of the played content. |
| 541 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; | 542 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; |
| 542 bool is_encrypted_; | 543 bool is_encrypted_; |
| 543 | 544 |
| 545 // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. |
| 546 int underflow_count_; |
| 547 std::unique_ptr<base::ElapsedTimer> underflow_timer_; |
| 548 |
| 544 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 549 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 545 }; | 550 }; |
| 546 | 551 |
| 547 } // namespace media | 552 } // namespace media |
| 548 | 553 |
| 549 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 554 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |