OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_EXPERIMENT_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_EXPERIMENT_H_ |
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_EXPERIMENT_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_EXPERIMENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 }; | 24 }; |
25 | 25 |
26 struct NET_EXPORT_PRIVATE SimpleExperiment { | 26 struct NET_EXPORT_PRIVATE SimpleExperiment { |
27 SimpleExperimentType type = SimpleExperimentType::NONE; | 27 SimpleExperimentType type = SimpleExperimentType::NONE; |
28 uint32_t param = 0; | 28 uint32_t param = 0; |
29 }; | 29 }; |
30 | 30 |
31 NET_EXPORT_PRIVATE SimpleExperiment | 31 NET_EXPORT_PRIVATE SimpleExperiment |
32 GetSimpleExperiment(net::CacheType cache_type); | 32 GetSimpleExperiment(net::CacheType cache_type); |
33 | 33 |
34 NET_EXPORT_PRIVATE extern const base::Feature kSimpleCachePrefetchExperiment; | |
35 NET_EXPORT_PRIVATE extern const char kSimplePrefetchBytesParam[]; | |
36 | |
37 // Returns how large a file would get prefetched on reading the entry. | |
38 // If the experiment is disabled, returns 0. | |
39 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
| |
40 | |
34 } // namespace disk_cache | 41 } // namespace disk_cache |
35 | 42 |
36 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_EXPERIMENT_H_ | 43 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_EXPERIMENT_H_ |
OLD | NEW |