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

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

Issue 2386443002: media: Use native BufferingState in media mojo interfaces (Closed)
Patch Set: media: Use native media enums in media mojo interfaces Created 4 years, 2 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
« no previous file with comments | « no previous file | media/base/ipc/media_param_traits_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MEDIA_BASE_BUFFERING_STATE_H_ 5 #ifndef MEDIA_BASE_BUFFERING_STATE_H_
6 #define MEDIA_BASE_BUFFERING_STATE_H_ 6 #define MEDIA_BASE_BUFFERING_STATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 enum BufferingState { 12 enum BufferingState {
13 // Indicates that there is no data buffered. 13 // Indicates that there is no data buffered.
14 // 14 //
15 // Typical reason is data underflow and hence playback should be paused. 15 // Typical reason is data underflow and hence playback should be paused.
16 BUFFERING_HAVE_NOTHING, 16 BUFFERING_HAVE_NOTHING,
17 17
18 // Indicates that enough data has been buffered. 18 // Indicates that enough data has been buffered.
19 // 19 //
20 // Typical reason is enough data has been prerolled to start playback. 20 // Typical reason is enough data has been prerolled to start playback.
21 BUFFERING_HAVE_ENOUGH, 21 BUFFERING_HAVE_ENOUGH,
22
23 BUFFERING_STATE_MAX = BUFFERING_HAVE_ENOUGH,
22 }; 24 };
23 25
24 // Used to indicate changes in buffering state; 26 // Used to indicate changes in buffering state;
25 typedef base::Callback<void(BufferingState)> BufferingStateCB; 27 typedef base::Callback<void(BufferingState)> BufferingStateCB;
26 28
27 } // namespace media 29 } // namespace media
28 30
29 #endif // MEDIA_BASE_BUFFERING_STATE_H_ 31 #endif // MEDIA_BASE_BUFFERING_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/ipc/media_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698