| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 // unimportant. | 495 // unimportant. |
| 496 bool suppress_destruction_errors_; | 496 bool suppress_destruction_errors_; |
| 497 | 497 |
| 498 // State indicating if it's okay to suspend or not. Updated on the first time | 498 // State indicating if it's okay to suspend or not. Updated on the first time |
| 499 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame | 499 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame |
| 500 // from the compositor will be queried to see if suspend is supported; the | 500 // from the compositor will be queried to see if suspend is supported; the |
| 501 // state will be set to YES or NO respectively if a frame is available. | 501 // state will be set to YES or NO respectively if a frame is available. |
| 502 enum class CanSuspendState { UNKNOWN, YES, NO }; | 502 enum class CanSuspendState { UNKNOWN, YES, NO }; |
| 503 CanSuspendState can_suspend_state_; | 503 CanSuspendState can_suspend_state_; |
| 504 | 504 |
| 505 // The time of the last call to OnHidden(). |
| 506 base::TimeTicks last_hidden_time_; |
| 507 |
| 505 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 508 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 506 }; | 509 }; |
| 507 | 510 |
| 508 } // namespace media | 511 } // namespace media |
| 509 | 512 |
| 510 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 513 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |