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 CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ |
6 #define CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ | 6 #define CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ |
7 | 7 |
8 #include "base/time/time.h" | |
9 | |
8 namespace net { | 10 namespace net { |
9 class URLRequest; | 11 class URLRequest; |
10 } | 12 } |
11 | 13 |
12 namespace precache { | 14 namespace precache { |
13 | 15 |
14 void UpdatePrecacheMetricsAndState(const net::URLRequest* request, | 16 void UpdatePrecacheMetricsAndState(const net::URLRequest* request, |
15 void* profile_id); | 17 void* profile_id); |
16 | 18 |
19 // Registers the precache synthetic field trial for users whom the precache task | |
20 // started in the last |kDaysForPrecacheCandidates| days. The group name of the | |
21 // synthetic field trial will be the regular precache group. | |
22 // |last_precache_time| is the last time precache task was run. | |
23 void RegisterPrecacheSyntheticFieldTrial(const base::Time& last_precache_time); | |
jamartin
2016/12/21 23:54:33
// All time classes are copyable, assignable, and
twifkak
2017/01/05 23:53:14
Done.
| |
24 | |
17 } // namespace precache | 25 } // namespace precache |
18 | 26 |
19 #endif // CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ | 27 #endif // CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ |
OLD | NEW |