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