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

Side by Side Diff: net/base/expiring_cache.h

Issue 18054009: Use a direct include of time headers in net/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/base/capturing_net_log.h ('k') | net/base/expiring_cache_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_EXPIRING_CACHE_H_ 5 #ifndef NET_BASE_EXPIRING_CACHE_H_
6 #define NET_BASE_EXPIRING_CACHE_H_ 6 #define NET_BASE_EXPIRING_CACHE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/time.h" 13 #include "base/time/time.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 template <typename KeyType, 17 template <typename KeyType,
18 typename ValueType, 18 typename ValueType,
19 typename ExpirationType> 19 typename ExpirationType>
20 class NoopEvictionHandler { 20 class NoopEvictionHandler {
21 public: 21 public:
22 void Handle(const KeyType& key, 22 void Handle(const KeyType& key,
23 const ValueType& value, 23 const ValueType& value,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 EntryMap entries_; 209 EntryMap entries_;
210 ExpirationCompare expiration_comp_; 210 ExpirationCompare expiration_comp_;
211 EvictionHandler eviction_handler_; 211 EvictionHandler eviction_handler_;
212 212
213 DISALLOW_COPY_AND_ASSIGN(ExpiringCache); 213 DISALLOW_COPY_AND_ASSIGN(ExpiringCache);
214 }; 214 };
215 215
216 } // namespace net 216 } // namespace net
217 217
218 #endif // NET_BASE_EXPIRING_CACHE_H_ 218 #endif // NET_BASE_EXPIRING_CACHE_H_
OLDNEW
« no previous file with comments | « net/base/capturing_net_log.h ('k') | net/base/expiring_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698