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

Side by Side Diff: chrome/browser/net/timed_cache.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NET_TIMED_CACHE_H_ 5 #ifndef CHROME_BROWSER_NET_TIMED_CACHE_H_
6 #define CHROME_BROWSER_NET_TIMED_CACHE_H_ 6 #define CHROME_BROWSER_NET_TIMED_CACHE_H_
7 7
8 #include "base/basictypes.h"
9 #include "base/containers/mru_cache.h" 8 #include "base/containers/mru_cache.h"
9 #include "base/macros.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 class GURL; 12 class GURL;
13 13
14 namespace chrome_browser_net { 14 namespace chrome_browser_net {
15 15
16 // Define a LRU cache that recalls all navigations within the last N seconds. 16 // Define a LRU cache that recalls all navigations within the last N seconds.
17 // When we learn about subresources to possibly preconnect to, it would be a 17 // When we learn about subresources to possibly preconnect to, it would be a
18 // waste to preconnect when the original navigation was too long ago. Any 18 // waste to preconnect when the original navigation was too long ago. Any
19 // connected, but unused TCP/IP connection, will generally be reset by the 19 // connected, but unused TCP/IP connection, will generally be reset by the
(...skipping 19 matching lines...) Expand all
39 39
40 // The longest time an entry can persist in the cache, and still be found. 40 // The longest time an entry can persist in the cache, and still be found.
41 const base::TimeDelta max_duration_; 41 const base::TimeDelta max_duration_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(TimedCache); 43 DISALLOW_COPY_AND_ASSIGN(TimedCache);
44 }; 44 };
45 45
46 } // namespace chrome_browser_net 46 } // namespace chrome_browser_net
47 47
48 #endif // CHROME_BROWSER_NET_TIMED_CACHE_H_ 48 #endif // CHROME_BROWSER_NET_TIMED_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc ('k') | chrome/browser/net/url_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698