OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_CLOCK_H_ | 5 #ifndef MEDIA_BASE_CLOCK_H_ |
6 #define MEDIA_BASE_CLOCK_H_ | 6 #define MEDIA_BASE_CLOCK_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // time set via SetTime(). | 109 // time set via SetTime(). |
110 base::Time reference_; | 110 base::Time reference_; |
111 | 111 |
112 // Current accumulated amount of media time. The remaining portion must be | 112 // Current accumulated amount of media time. The remaining portion must be |
113 // calculated by comparing the system time to the reference time. | 113 // calculated by comparing the system time to the reference time. |
114 base::TimeDelta media_time_; | 114 base::TimeDelta media_time_; |
115 | 115 |
116 // Current playback rate. | 116 // Current playback rate. |
117 float playback_rate_; | 117 float playback_rate_; |
118 | 118 |
119 // The maximum time that can be returned by calls to GetCurrentTime. | 119 // The maximum time that can be returned by calls to Elapsed(). |
120 base::TimeDelta max_time_; | 120 base::TimeDelta max_time_; |
121 | 121 |
122 // Duration of the media. | 122 // Duration of the media. |
123 base::TimeDelta duration_; | 123 base::TimeDelta duration_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(Clock); | 125 DISALLOW_COPY_AND_ASSIGN(Clock); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace media | 128 } // namespace media |
129 | 129 |
130 #endif // MEDIA_BASE_CLOCK_H_ | 130 #endif // MEDIA_BASE_CLOCK_H_ |
OLD | NEW |