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

Unified Diff: webkit/media/simple_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/simple_data_source.h
diff --git a/webkit/media/simple_data_source.h b/webkit/media/simple_data_source.h
index ca1e78a312e0f34c23f59c3f288821b4aa44a19d..036ed2cfead08cd65b6f46068684ba1b29d6c458 100644
--- a/webkit/media/simple_data_source.h
+++ b/webkit/media/simple_data_source.h
@@ -59,6 +59,7 @@ class SimpleDataSource
virtual bool IsStreaming() OVERRIDE;
virtual void SetPreload(media::Preload preload) OVERRIDE;
virtual void SetBitrate(int bitrate) OVERRIDE;
+ virtual bool IsLocalSource() OVERRIDE;
// Used to inject a mock used for unittests.
virtual void SetURLLoaderForTest(WebKit::WebURLLoader* mock_loader);
@@ -126,6 +127,7 @@ class SimpleDataSource
std::string data_;
int64 size_;
bool single_origin_;
+ bool local_source_;
// Simple state tracking variable.
enum State {

Powered by Google App Engine
This is Rietveld 408576698