| OLD | NEW |
| 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 // See net/disk_cache/disk_cache.h for the public interface of the cache. | 5 // See net/disk_cache/disk_cache.h for the public interface of the cache. |
| 6 | 6 |
| 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ |
| 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 Entry** entry, | 181 Entry** entry, |
| 182 const CompletionCallback& callback) override; | 182 const CompletionCallback& callback) override; |
| 183 int DoomEntry(const std::string& key, | 183 int DoomEntry(const std::string& key, |
| 184 const CompletionCallback& callback) override; | 184 const CompletionCallback& callback) override; |
| 185 int DoomAllEntries(const CompletionCallback& callback) override; | 185 int DoomAllEntries(const CompletionCallback& callback) override; |
| 186 int DoomEntriesBetween(base::Time initial_time, | 186 int DoomEntriesBetween(base::Time initial_time, |
| 187 base::Time end_time, | 187 base::Time end_time, |
| 188 const CompletionCallback& callback) override; | 188 const CompletionCallback& callback) override; |
| 189 int DoomEntriesSince(base::Time initial_time, | 189 int DoomEntriesSince(base::Time initial_time, |
| 190 const CompletionCallback& callback) override; | 190 const CompletionCallback& callback) override; |
| 191 int CalculateSizeOfEntriesBetween( |
| 192 base::Time initial_time, |
| 193 base::Time end_time, |
| 194 const CompletionCallback& callback) override; |
| 191 scoped_ptr<Iterator> CreateIterator() override; | 195 scoped_ptr<Iterator> CreateIterator() override; |
| 192 void GetStats(StatsItems* stats) override; | 196 void GetStats(StatsItems* stats) override; |
| 193 void OnExternalCacheHit(const std::string& key) override; | 197 void OnExternalCacheHit(const std::string& key) override; |
| 194 | 198 |
| 195 private: | 199 private: |
| 196 friend class EvictionV3; | 200 friend class EvictionV3; |
| 197 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap; | 201 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap; |
| 198 class IteratorImpl; | 202 class IteratorImpl; |
| 199 class NotImplementedIterator; | 203 class NotImplementedIterator; |
| 200 class Worker; | 204 class Worker; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 scoped_ptr<base::RepeatingTimer<BackendImplV3> > timer_; // Usage timer. | 278 scoped_ptr<base::RepeatingTimer<BackendImplV3> > timer_; // Usage timer. |
| 275 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. | 279 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. |
| 276 base::WeakPtrFactory<BackendImplV3> ptr_factory_; | 280 base::WeakPtrFactory<BackendImplV3> ptr_factory_; |
| 277 | 281 |
| 278 DISALLOW_COPY_AND_ASSIGN(BackendImplV3); | 282 DISALLOW_COPY_AND_ASSIGN(BackendImplV3); |
| 279 }; | 283 }; |
| 280 | 284 |
| 281 } // namespace disk_cache | 285 } // namespace disk_cache |
| 282 | 286 |
| 283 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ | 287 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ |
| OLD | NEW |