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

Side by Side Diff: net/disk_cache/simple/simple_backend_impl.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/memory/mem_backend_impl.cc ('k') | net/disk_cache/simple/simple_backend_impl.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 Entry** entry, 98 Entry** entry,
99 const CompletionCallback& callback) override; 99 const CompletionCallback& callback) override;
100 int DoomEntry(const std::string& key, 100 int DoomEntry(const std::string& key,
101 const CompletionCallback& callback) override; 101 const CompletionCallback& callback) override;
102 int DoomAllEntries(const CompletionCallback& callback) override; 102 int DoomAllEntries(const CompletionCallback& callback) override;
103 int DoomEntriesBetween(base::Time initial_time, 103 int DoomEntriesBetween(base::Time initial_time,
104 base::Time end_time, 104 base::Time end_time,
105 const CompletionCallback& callback) override; 105 const CompletionCallback& callback) override;
106 int DoomEntriesSince(base::Time initial_time, 106 int DoomEntriesSince(base::Time initial_time,
107 const CompletionCallback& callback) override; 107 const CompletionCallback& callback) override;
108 int CalculateSizeOfAllEntries(const CompletionCallback& callback) override;
108 scoped_ptr<Iterator> CreateIterator() override; 109 scoped_ptr<Iterator> CreateIterator() override;
109 void GetStats(base::StringPairs* stats) override; 110 void GetStats(base::StringPairs* stats) override;
110 void OnExternalCacheHit(const std::string& key) override; 111 void OnExternalCacheHit(const std::string& key) override;
111 112
112 private: 113 private:
113 class SimpleIterator; 114 class SimpleIterator;
114 friend class SimpleIterator; 115 friend class SimpleIterator;
115 116
116 typedef base::hash_map<uint64, SimpleEntryImpl*> EntryMap; 117 typedef base::hash_map<uint64, SimpleEntryImpl*> EntryMap;
117 118
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // is complete. The base::Closure map target is used to store deferred 204 // is complete. The base::Closure map target is used to store deferred
204 // operations to be run at the completion of the Doom. 205 // operations to be run at the completion of the Doom.
205 base::hash_map<uint64, std::vector<base::Closure> > entries_pending_doom_; 206 base::hash_map<uint64, std::vector<base::Closure> > entries_pending_doom_;
206 207
207 net::NetLog* const net_log_; 208 net::NetLog* const net_log_;
208 }; 209 };
209 210
210 } // namespace disk_cache 211 } // namespace disk_cache
211 212
212 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 213 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/memory/mem_backend_impl.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698