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

Unified Diff: net/disk_cache/simple/simple_experiment.h

Issue 2874833005: SimpleCache: read small files all at once. (Closed)
Patch Set: Add some metrics and an experiment knob. Not really happy with coverage, though. Created 3 years, 5 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: net/disk_cache/simple/simple_experiment.h
diff --git a/net/disk_cache/simple/simple_experiment.h b/net/disk_cache/simple/simple_experiment.h
index 2231e852266f27aa449e23cc4295c6fccc6e20e5..982c42b8559ab9420391f3ed7e482f1eb8eaddeb 100644
--- a/net/disk_cache/simple/simple_experiment.h
+++ b/net/disk_cache/simple/simple_experiment.h
@@ -31,6 +31,13 @@ struct NET_EXPORT_PRIVATE SimpleExperiment {
NET_EXPORT_PRIVATE SimpleExperiment
GetSimpleExperiment(net::CacheType cache_type);
+NET_EXPORT_PRIVATE extern const base::Feature kSimpleCachePrefetchExperiment;
+NET_EXPORT_PRIVATE extern const char kSimplePrefetchBytesParam[];
+
+// Returns how large a file would get prefetched on reading the entry.
+// If the experiment is disabled, returns 0.
+NET_EXPORT_PRIVATE int GetSimpleCachePrefetchSize();
pasko 2017/07/18 14:02:57 I think this file is for experiments that depend o
Maks Orlovich 2017/07/25 16:06:29 OK, done. This PoV is more convincing with the evi
+
} // namespace disk_cache
#endif // NET_DISK_CACHE_SIMPLE_SIMPLE_EXPERIMENT_H_

Powered by Google App Engine
This is Rietveld 408576698