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

Unified Diff: content/renderer/media/buffered_data_source.h

Issue 512413002: Move Preload enum to BufferedDataSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/buffered_data_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/buffered_data_source.h
diff --git a/content/renderer/media/buffered_data_source.h b/content/renderer/media/buffered_data_source.h
index a9a8cd3ed2bf32c9bab83b9be8fe6d211294ea3a..c2fd174c62139492990fdd1b56d18130557bded0 100644
--- a/content/renderer/media/buffered_data_source.h
+++ b/content/renderer/media/buffered_data_source.h
@@ -12,7 +12,6 @@
#include "base/synchronization/lock.h"
#include "content/common/content_export.h"
#include "content/renderer/media/buffered_resource_loader.h"
-#include "content/renderer/media/preload.h"
#include "media/base/data_source.h"
#include "media/base/ranges.h"
#include "url/gurl.h"
@@ -48,6 +47,18 @@ class CONTENT_EXPORT BufferedDataSourceHost {
// before being passed to other threads. It may be deleted on any thread.
class CONTENT_EXPORT BufferedDataSource : public media::DataSource {
public:
+ // Used to specify video preload states. They are "hints" to the browser about
+ // how aggressively the browser should load and buffer data.
+ // Please see the HTML5 spec for the descriptions of these values:
+ // http://www.w3.org/TR/html5/video.html#attr-media-preload
+ //
+ // Enum values must match the values in blink::WebMediaPlayer::Preload and
+ // there will be assertions at compile time if they do not match.
+ enum Preload {
+ NONE,
+ METADATA,
+ AUTO,
+ };
typedef base::Callback<void(bool)> DownloadingCB;
// |url| and |cors_mode| are passed to the object. Buffered byte range changes
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/buffered_data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698