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

Unified Diff: webkit/media/buffered_data_source.h

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix media/event-attributes.html Created 9 years, 1 month 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
Index: webkit/media/buffered_data_source.h
diff --git a/webkit/media/buffered_data_source.h b/webkit/media/buffered_data_source.h
index 7987d09a42ef172c1eb007d56581d26fd1cdd269..4bc849931bad84df83e5d441e36f94d3d5650711 100644
--- a/webkit/media/buffered_data_source.h
+++ b/webkit/media/buffered_data_source.h
@@ -53,6 +53,7 @@ class BufferedDataSource : public WebDataSource {
virtual bool IsStreaming() OVERRIDE;
virtual void SetPreload(media::Preload preload) OVERRIDE;
virtual void SetBitrate(int bitrate) OVERRIDE;
+ virtual bool IsLocalSource() OVERRIDE;
// webkit_glue::WebDataSource implementation.
virtual void Initialize(const std::string& url,
@@ -147,8 +148,8 @@ class BufferedDataSource : public WebDataSource {
int64 total_bytes_;
int64 buffered_bytes_;
- // True if this data source is considered loaded.
- bool loaded_;
+ // True if this data source is from a local file.
+ bool local_source_;
// This value will be true if this data source can only support streaming.
// i.e. range request is not supported.

Powered by Google App Engine
This is Rietveld 408576698