| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 356 |
| 357 // Called during OnHidden() when we want a suspended player to enter the | 357 // Called during OnHidden() when we want a suspended player to enter the |
| 358 // paused state after some idle timeout. | 358 // paused state after some idle timeout. |
| 359 void ScheduleIdlePauseTimer(); | 359 void ScheduleIdlePauseTimer(); |
| 360 | 360 |
| 361 void CreateWatchTimeReporter(); | 361 void CreateWatchTimeReporter(); |
| 362 | 362 |
| 363 // Returns true if the player is hidden. | 363 // Returns true if the player is hidden. |
| 364 bool IsHidden() const; | 364 bool IsHidden() const; |
| 365 | 365 |
| 366 // Return whether |pipeline_metadata_| is compatible with an overlay. This |
| 367 // is intended for android. |
| 368 bool DoesOverlaySupportMetadata() const; |
| 369 |
| 366 blink::WebLocalFrame* frame_; | 370 blink::WebLocalFrame* frame_; |
| 367 | 371 |
| 368 // The playback state last reported to |delegate_|, to avoid setting duplicate | 372 // The playback state last reported to |delegate_|, to avoid setting duplicate |
| 369 // states. (Which can have undesired effects like resetting the idle timer.) | 373 // states. (Which can have undesired effects like resetting the idle timer.) |
| 370 DelegateState delegate_state_; | 374 DelegateState delegate_state_; |
| 371 | 375 |
| 372 // Set when OnSuspendRequested() is called with |must_suspend| unset. | 376 // Set when OnSuspendRequested() is called with |must_suspend| unset. |
| 373 bool is_idle_; | 377 bool is_idle_; |
| 374 | 378 |
| 375 // Set when OnSuspendRequested() is called with |must_suspend| set. | 379 // Set when OnSuspendRequested() is called with |must_suspend| set. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 590 |
| 587 // Whether the player is currently in autoplay muted state. | 591 // Whether the player is currently in autoplay muted state. |
| 588 bool autoplay_muted_ = false; | 592 bool autoplay_muted_ = false; |
| 589 | 593 |
| 590 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 594 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 591 }; | 595 }; |
| 592 | 596 |
| 593 } // namespace media | 597 } // namespace media |
| 594 | 598 |
| 595 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 599 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |