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

Unified Diff: media/blink/url_index.h

Issue 2910553002: fully cache small audio/video (Closed)
Patch Set: comment added Created 3 years, 7 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 | « media/blink/resource_multibuffer_data_provider.cc ('k') | media/blink/url_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/url_index.h
diff --git a/media/blink/url_index.h b/media/blink/url_index.h
index f18d358d8e818fbf4aa6168fe9bbe99045256cc3..d8c2a6cf5b64ad826b5c5a9e9ac56bca7e330fc3 100644
--- a/media/blink/url_index.h
+++ b/media/blink/url_index.h
@@ -91,6 +91,9 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
// Returns the number of blocks cached for this resource.
size_t CachedSize();
+ // Returns true if this resource is fully cached in memory.
+ bool FullyCached();
+
// Returns our url_index, or nullptr if it's been destroyed.
UrlIndex* url_index() const { return url_index_.get(); }
@@ -131,7 +134,7 @@ class MEDIA_BLINK_EXPORT UrlData : public base::RefCounted<UrlData> {
// Returns true it is valid to keep using this to access cached data.
// A single media player instance may choose to ignore this for resources
// that have already been opened.
- bool Valid() const;
+ bool Valid();
// Virtual so we can override it for testing.
virtual ResourceMultiBuffer* multibuffer();
« no previous file with comments | « media/blink/resource_multibuffer_data_provider.cc ('k') | media/blink/url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698