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

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

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « net/base/test_host_resolver_observer.h ('k') | net/disk_cache/disk_cache_test_base.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BACKEND_IMPL_H_ 7 #ifndef NET_DISK_CACHE_BACKEND_IMPL_H_
8 #define NET_DISK_CACHE_BACKEND_IMPL_H_ 8 #define NET_DISK_CACHE_BACKEND_IMPL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 // Trims an entry (all if |empty| is true) from the list of deleted 251 // Trims an entry (all if |empty| is true) from the list of deleted
252 // entries. This method should be called directly on the cache thread. 252 // entries. This method should be called directly on the cache thread.
253 void TrimDeletedListForTest(bool empty); 253 void TrimDeletedListForTest(bool empty);
254 254
255 // Peforms a simple self-check, and returns the number of dirty items 255 // Peforms a simple self-check, and returns the number of dirty items
256 // or an error code (negative value). 256 // or an error code (negative value).
257 int SelfCheck(); 257 int SelfCheck();
258 258
259 // Backend interface. 259 // Backend interface.
260 virtual int32 GetEntryCount() const; 260 virtual int32 GetEntryCount() const OVERRIDE;
261 virtual int OpenEntry(const std::string& key, Entry** entry, 261 virtual int OpenEntry(const std::string& key, Entry** entry,
262 OldCompletionCallback* callback); 262 OldCompletionCallback* callback) OVERRIDE;
263 virtual int CreateEntry(const std::string& key, Entry** entry, 263 virtual int CreateEntry(const std::string& key, Entry** entry,
264 OldCompletionCallback* callback); 264 OldCompletionCallback* callback) OVERRIDE;
265 virtual int DoomEntry(const std::string& key, OldCompletionCallback* callback) ; 265 virtual int DoomEntry(const std::string& key,
266 virtual int DoomAllEntries(OldCompletionCallback* callback); 266 OldCompletionCallback* callback) OVERRIDE;
267 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE;
267 virtual int DoomEntriesBetween(const base::Time initial_time, 268 virtual int DoomEntriesBetween(const base::Time initial_time,
268 const base::Time end_time, 269 const base::Time end_time,
269 OldCompletionCallback* callback); 270 OldCompletionCallback* callback) OVERRIDE;
270 virtual int DoomEntriesSince(const base::Time initial_time, 271 virtual int DoomEntriesSince(const base::Time initial_time,
271 OldCompletionCallback* callback); 272 OldCompletionCallback* callback) OVERRIDE;
272 virtual int OpenNextEntry(void** iter, Entry** next_entry, 273 virtual int OpenNextEntry(void** iter, Entry** next_entry,
273 OldCompletionCallback* callback); 274 OldCompletionCallback* callback) OVERRIDE;
274 virtual void EndEnumeration(void** iter); 275 virtual void EndEnumeration(void** iter) OVERRIDE;
275 virtual void GetStats(StatsItems* stats); 276 virtual void GetStats(StatsItems* stats) OVERRIDE;
276 virtual void OnExternalCacheHit(const std::string& key); 277 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
277 278
278 private: 279 private:
279 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap; 280 typedef base::hash_map<CacheAddr, EntryImpl*> EntriesMap;
280 281
281 // Creates a new backing file for the cache index. 282 // Creates a new backing file for the cache index.
282 bool CreateBackingStore(disk_cache::File* file); 283 bool CreateBackingStore(disk_cache::File* file);
283 bool InitBackingStore(bool* file_created); 284 bool InitBackingStore(bool* file_created);
284 void AdjustMaxCacheSize(int table_len); 285 void AdjustMaxCacheSize(int table_len);
285 286
286 // Deletes the cache and starts again. 287 // Deletes the cache and starts again.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 390
390 DISALLOW_COPY_AND_ASSIGN(BackendImpl); 391 DISALLOW_COPY_AND_ASSIGN(BackendImpl);
391 }; 392 };
392 393
393 // Returns the prefered max cache size given the available disk space. 394 // Returns the prefered max cache size given the available disk space.
394 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available); 395 NET_EXPORT_PRIVATE int PreferedCacheSize(int64 available);
395 396
396 } // namespace disk_cache 397 } // namespace disk_cache
397 398
398 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_ 399 #endif // NET_DISK_CACHE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « net/base/test_host_resolver_observer.h ('k') | net/disk_cache/disk_cache_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698