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

Side by Side Diff: chrome/browser/precache/precache_util.h

Issue 2061303003: Precache should cancel when there is user traffic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restructured Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698