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

Side by Side Diff: net/disk_cache/blockfile/backend_impl_v3.h

Issue 1304363013: Add a size estimation mechanism to StoragePartitionHttpCacheDataRemover. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static_cast Created 5 years, 2 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
« no previous file with comments | « net/disk_cache/blockfile/backend_impl.cc ('k') | net/disk_cache/blockfile/backend_impl_v3.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 // 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
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 CalculateSizeOfAllEntries(const CompletionCallback& callback) override;
191 scoped_ptr<Iterator> CreateIterator() override; 192 scoped_ptr<Iterator> CreateIterator() override;
192 void GetStats(StatsItems* stats) override; 193 void GetStats(StatsItems* stats) override;
193 void OnExternalCacheHit(const std::string& key) override; 194 void OnExternalCacheHit(const std::string& key) override;
194 195
195 private: 196 private:
196 friend class EvictionV3; 197 friend class EvictionV3;
197 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap; 198 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap;
198 class IteratorImpl; 199 class IteratorImpl;
199 class NotImplementedIterator; 200 class NotImplementedIterator;
200 class Worker; 201 class Worker;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 scoped_ptr<base::RepeatingTimer> timer_; // Usage timer. 275 scoped_ptr<base::RepeatingTimer> timer_; // Usage timer.
275 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. 276 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing.
276 base::WeakPtrFactory<BackendImplV3> ptr_factory_; 277 base::WeakPtrFactory<BackendImplV3> ptr_factory_;
277 278
278 DISALLOW_COPY_AND_ASSIGN(BackendImplV3); 279 DISALLOW_COPY_AND_ASSIGN(BackendImplV3);
279 }; 280 };
280 281
281 } // namespace disk_cache 282 } // namespace disk_cache
282 283
283 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ 284 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/backend_impl.cc ('k') | net/disk_cache/blockfile/backend_impl_v3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698