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

Unified Diff: media/blink/cache_util.h

Issue 1399603003: Tie multibuffers to URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_cache
Patch Set: compile fixes Created 5 years, 2 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
Index: media/blink/cache_util.h
diff --git a/media/blink/cache_util.h b/media/blink/cache_util.h
index 5c59f14e74234adfd15a25010bf16195e87f695d..a09002554bfb146c6fb584b5646f36ca0c390650 100644
--- a/media/blink/cache_util.h
+++ b/media/blink/cache_util.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/time/time.h"
#include "media/base/media_export.h"
namespace blink {
@@ -36,6 +37,12 @@ enum UncacheableReason {
uint32 MEDIA_EXPORT GetReasonsForUncacheability(
const blink::WebURLResponse& response);
+// Returns when we should evict data from this response from our
+// memory cache. Note that we may still cache data longer if
+// a audio/video tag is currently using it.
+base::TimeTicks MEDIA_EXPORT GetMemoryCacheValidUntil(
+ const blink::WebURLResponse& response);
+
} // namespace media
#endif // MEDIA_BLINK_CACHE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698