OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_BASE_BUFFERING_STATE_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_BUFFERING_STATE_H_ |
6 #define CHROMECAST_MEDIA_CMA_BASE_BUFFERING_STATE_H_ | 6 #define CHROMECAST_MEDIA_CMA_BASE_BUFFERING_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Callback invoked each time there is a change of state. | 112 // Callback invoked each time there is a change of state. |
113 base::Closure state_changed_cb_; | 113 base::Closure state_changed_cb_; |
114 | 114 |
115 // Callback invoked to adjust the high buffer level. | 115 // Callback invoked to adjust the high buffer level. |
116 HighLevelBufferCB high_level_buffer_cb_; | 116 HighLevelBufferCB high_level_buffer_cb_; |
117 | 117 |
118 // State. | 118 // State. |
119 State state_; | 119 State state_; |
120 | 120 |
121 // Playback media time. | 121 // Playback media time. |
122 // Equal to kNoTimestamp() when not known. | 122 // Equal to kNoTimestamp when not known. |
123 base::TimeDelta media_time_; | 123 base::TimeDelta media_time_; |
124 | 124 |
125 // Maximum rendering media time. | 125 // Maximum rendering media time. |
126 // This corresponds to the timestamp of the last frame sent to the hardware | 126 // This corresponds to the timestamp of the last frame sent to the hardware |
127 // decoder/renderer. | 127 // decoder/renderer. |
128 base::TimeDelta max_rendering_time_; | 128 base::TimeDelta max_rendering_time_; |
129 | 129 |
130 // Buffered media time. | 130 // Buffered media time. |
131 // Equal to kNoTimestamp() when not known. | 131 // Equal to kNoTimestamp when not known. |
132 base::TimeDelta buffered_time_; | 132 base::TimeDelta buffered_time_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(BufferingState); | 134 DISALLOW_COPY_AND_ASSIGN(BufferingState); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace media | 137 } // namespace media |
138 } // namespace chromecast | 138 } // namespace chromecast |
139 | 139 |
140 #endif // CHROMECAST_MEDIA_CMA_BASE_BUFFERING_STATE_H_ | 140 #endif // CHROMECAST_MEDIA_CMA_BASE_BUFFERING_STATE_H_ |
OLD | NEW |