Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: chromecast/media/cma/base/buffering_state.h

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698