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

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

Issue 542733002: Remove void** from disk_cache interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more more explicit constructor Created 6 years, 3 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 (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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual int CreateEntry(const std::string& key, Entry** entry, 183 virtual int CreateEntry(const std::string& key, Entry** entry,
184 const CompletionCallback& callback) OVERRIDE; 184 const CompletionCallback& callback) OVERRIDE;
185 virtual int DoomEntry(const std::string& key, 185 virtual int DoomEntry(const std::string& key,
186 const CompletionCallback& callback) OVERRIDE; 186 const CompletionCallback& callback) OVERRIDE;
187 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE; 187 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE;
188 virtual int DoomEntriesBetween(base::Time initial_time, 188 virtual int DoomEntriesBetween(base::Time initial_time,
189 base::Time end_time, 189 base::Time end_time,
190 const CompletionCallback& callback) OVERRIDE; 190 const CompletionCallback& callback) OVERRIDE;
191 virtual int DoomEntriesSince(base::Time initial_time, 191 virtual int DoomEntriesSince(base::Time initial_time,
192 const CompletionCallback& callback) OVERRIDE; 192 const CompletionCallback& callback) OVERRIDE;
193 virtual int OpenNextEntry(void** iter, Entry** next_entry, 193 virtual int OpenNextEntry(Iterator* iter, Entry** next_entry,
194 const CompletionCallback& callback) OVERRIDE; 194 const CompletionCallback& callback) OVERRIDE;
195 virtual void EndEnumeration(void** iter) OVERRIDE;
196 virtual void GetStats(StatsItems* stats) OVERRIDE; 195 virtual void GetStats(StatsItems* stats) OVERRIDE;
197 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 196 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
198 197
199 private: 198 private:
200 friend class EvictionV3; 199 friend class EvictionV3;
201 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap; 200 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap;
202 class Worker; 201 class Worker;
203 202
204 void AdjustMaxCacheSize(); 203 void AdjustMaxCacheSize();
205 bool InitStats(void* stats_data); 204 bool InitStats(void* stats_data);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 scoped_ptr<base::RepeatingTimer<BackendImplV3> > timer_; // Usage timer. 279 scoped_ptr<base::RepeatingTimer<BackendImplV3> > timer_; // Usage timer.
281 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. 280 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing.
282 base::WeakPtrFactory<BackendImplV3> ptr_factory_; 281 base::WeakPtrFactory<BackendImplV3> ptr_factory_;
283 282
284 DISALLOW_COPY_AND_ASSIGN(BackendImplV3); 283 DISALLOW_COPY_AND_ASSIGN(BackendImplV3);
285 }; 284 };
286 285
287 } // namespace disk_cache 286 } // namespace disk_cache
288 287
289 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ 288 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698