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

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

Issue 542733002: Remove void** from disk_cache interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for once and all remove spurious mac sdk changes 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_H_ 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_
8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 virtual int CreateEntry(const std::string& key, Entry** entry, 266 virtual int CreateEntry(const std::string& key, Entry** entry,
267 const CompletionCallback& callback) OVERRIDE; 267 const CompletionCallback& callback) OVERRIDE;
268 virtual int DoomEntry(const std::string& key, 268 virtual int DoomEntry(const std::string& key,
269 const CompletionCallback& callback) OVERRIDE; 269 const CompletionCallback& callback) OVERRIDE;
270 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE; 270 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE;
271 virtual int DoomEntriesBetween(base::Time initial_time, 271 virtual int DoomEntriesBetween(base::Time initial_time,
272 base::Time end_time, 272 base::Time end_time,
273 const CompletionCallback& callback) OVERRIDE; 273 const CompletionCallback& callback) OVERRIDE;
274 virtual int DoomEntriesSince(base::Time initial_time, 274 virtual int DoomEntriesSince(base::Time initial_time,
275 const CompletionCallback& callback) OVERRIDE; 275 const CompletionCallback& callback) OVERRIDE;
276 virtual int OpenNextEntry(void** iter, Entry** next_entry, 276 virtual scoped_ptr<Iterator> CreateIterator() OVERRIDE;
277 const CompletionCallback& callback) OVERRIDE;
278 virtual void EndEnumeration(void** iter) OVERRIDE;
279 virtual void GetStats(StatsItems* stats) OVERRIDE; 277 virtual void GetStats(StatsItems* stats) OVERRIDE;
280 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 278 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
281 279
282 private: 280 private:
283 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap; 281 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap;
284 282
285 // Creates a new backing file for the cache index. 283 // Creates a new backing file for the cache index.
286 bool CreateBackingStore(disk_cache::File* file); 284 bool CreateBackingStore(disk_cache::File* file);
287 bool InitBackingStore(bool* file_created); 285 bool InitBackingStore(bool* file_created);
288 void AdjustMaxCacheSize(int table_len); 286 void AdjustMaxCacheSize(int table_len);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 base::WaitableEvent done_; // Signals the end of background work. 388 base::WaitableEvent done_; // Signals the end of background work.
391 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. 389 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing.
392 base::WeakPtrFactory<BackendImpl> ptr_factory_; 390 base::WeakPtrFactory<BackendImpl> ptr_factory_;
393 391
394 DISALLOW_COPY_AND_ASSIGN(BackendImpl); 392 DISALLOW_COPY_AND_ASSIGN(BackendImpl);
395 }; 393 };
396 394
397 } // namespace disk_cache 395 } // namespace disk_cache
398 396
399 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_ 397 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698