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

Side by Side Diff: net/disk_cache/mem_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/disk_cache/in_flight_backend_io.h ('k') | net/disk_cache/mem_entry_impl.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_MEM_BACKEND_IMPL_H__ 7 #ifndef NET_DISK_CACHE_MEM_BACKEND_IMPL_H__
8 #define NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ 8 #define NET_DISK_CACHE_MEM_BACKEND_IMPL_H__
9 #pragma once 9 #pragma once
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Insert an MemEntryImpl into the ranking list. This method is only called 56 // Insert an MemEntryImpl into the ranking list. This method is only called
57 // from MemEntryImpl to insert child entries. The reference can be removed 57 // from MemEntryImpl to insert child entries. The reference can be removed
58 // by calling RemoveFromRankingList(|entry|). 58 // by calling RemoveFromRankingList(|entry|).
59 void InsertIntoRankingList(MemEntryImpl* entry); 59 void InsertIntoRankingList(MemEntryImpl* entry);
60 60
61 // Remove |entry| from ranking list. This method is only called from 61 // Remove |entry| from ranking list. This method is only called from
62 // MemEntryImpl to remove a child entry from the ranking list. 62 // MemEntryImpl to remove a child entry from the ranking list.
63 void RemoveFromRankingList(MemEntryImpl* entry); 63 void RemoveFromRankingList(MemEntryImpl* entry);
64 64
65 // Backend interface. 65 // Backend interface.
66 virtual int32 GetEntryCount() const; 66 virtual int32 GetEntryCount() const OVERRIDE;
67 virtual int OpenEntry(const std::string& key, Entry** entry, 67 virtual int OpenEntry(const std::string& key, Entry** entry,
68 OldCompletionCallback* callback); 68 OldCompletionCallback* callback) OVERRIDE;
69 virtual int CreateEntry(const std::string& key, Entry** entry, 69 virtual int CreateEntry(const std::string& key, Entry** entry,
70 OldCompletionCallback* callback); 70 OldCompletionCallback* callback) OVERRIDE;
71 virtual int DoomEntry(const std::string& key, OldCompletionCallback* callback) ; 71 virtual int DoomEntry(const std::string& key,
72 virtual int DoomAllEntries(OldCompletionCallback* callback); 72 OldCompletionCallback* callback) OVERRIDE;
73 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE;
73 virtual int DoomEntriesBetween(const base::Time initial_time, 74 virtual int DoomEntriesBetween(const base::Time initial_time,
74 const base::Time end_time, 75 const base::Time end_time,
75 OldCompletionCallback* callback); 76 OldCompletionCallback* callback) OVERRIDE;
76 virtual int DoomEntriesSince(const base::Time initial_time, 77 virtual int DoomEntriesSince(const base::Time initial_time,
77 OldCompletionCallback* callback); 78 OldCompletionCallback* callback) OVERRIDE;
78 virtual int OpenNextEntry(void** iter, Entry** next_entry, 79 virtual int OpenNextEntry(void** iter, Entry** next_entry,
79 OldCompletionCallback* callback); 80 OldCompletionCallback* callback) OVERRIDE;
80 virtual void EndEnumeration(void** iter); 81 virtual void EndEnumeration(void** iter) OVERRIDE;
81 virtual void GetStats( 82 virtual void GetStats(
82 std::vector<std::pair<std::string, std::string> >* stats) {} 83 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {}
83 virtual void OnExternalCacheHit(const std::string& key); 84 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
84 85
85 private: 86 private:
86 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; 87 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap;
87 88
88 // Old Backend interface. 89 // Old Backend interface.
89 bool OpenEntry(const std::string& key, Entry** entry); 90 bool OpenEntry(const std::string& key, Entry** entry);
90 bool CreateEntry(const std::string& key, Entry** entry); 91 bool CreateEntry(const std::string& key, Entry** entry);
91 bool DoomEntry(const std::string& key); 92 bool DoomEntry(const std::string& key);
92 bool DoomAllEntries(); 93 bool DoomAllEntries();
93 bool DoomEntriesBetween(const base::Time initial_time, 94 bool DoomEntriesBetween(const base::Time initial_time,
(...skipping 16 matching lines...) Expand all
110 int32 current_size_; 111 int32 current_size_;
111 112
112 net::NetLog* net_log_; 113 net::NetLog* net_log_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); 115 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl);
115 }; 116 };
116 117
117 } // namespace disk_cache 118 } // namespace disk_cache
118 119
119 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ 120 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__
OLDNEW
« no previous file with comments | « net/disk_cache/in_flight_backend_io.h ('k') | net/disk_cache/mem_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698