summaryrefslogtreecommitdiffstats
path: root/chromium/media/base/buffering_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/base/buffering_state.h')
-rw-r--r--chromium/media/base/buffering_state.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/media/base/buffering_state.h b/chromium/media/base/buffering_state.h
new file mode 100644
index 00000000000..3140505847e
--- /dev/null
+++ b/chromium/media/base/buffering_state.h
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_BUFFERING_STATE_H_
+#define MEDIA_BASE_BUFFERING_STATE_H_
+
+#include "base/callback_forward.h"
+
+namespace media {
+
+enum BufferingState {
+ // Indicates that there is no data buffered.
+ //
+ // Typical reason is data underflow and hence playback should be paused.
+ BUFFERING_HAVE_NOTHING,
+
+ // Indicates that enough data has been buffered.
+ //
+ // Typical reason is enough data has been prerolled to start playback.
+ BUFFERING_HAVE_ENOUGH,
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_BUFFERING_STATE_H_