OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ | |
6 #define CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ | |
7 | |
8 #include "base/time/time.h" | |
9 #include "net/url_request/url_request.h" | |
10 #include "url/gurl.h" | |
11 | |
12 namespace precache { | |
13 | |
14 class PrecacheUtil { | |
bengr
2016/06/20 20:21:14
Why are these in a class?
Raj
2016/06/30 06:03:08
Removed the class.
| |
15 public: | |
16 static void UpdatePrecacheMetricsAndState(const net::URLRequest* request, | |
17 void* profile_id); | |
18 | |
19 private: | |
20 static void UpdatePrecacheMetricsAndStateOnUIThread( | |
21 const GURL& url, | |
22 const GURL& referrer, | |
23 base::TimeDelta latency, | |
24 const base::Time& fetch_time, | |
25 int64_t size, | |
26 bool was_cached, | |
27 bool is_user_traffic, | |
28 void* profile_id); | |
29 }; | |
30 | |
31 } // namespace precache | |
32 | |
33 #endif // CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_ | |
OLD | NEW |