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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 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/blockfile/backend_impl.cc ('k') | net/disk_cache/blockfile/backend_impl_v3.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) 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Trims an entry (all if |empty| is true) from the list of deleted 166 // Trims an entry (all if |empty| is true) from the list of deleted
167 // entries. This method should be called directly on the cache thread. 167 // entries. This method should be called directly on the cache thread.
168 void TrimDeletedListForTest(bool empty); 168 void TrimDeletedListForTest(bool empty);
169 169
170 // Performs a simple self-check, and returns the number of dirty items 170 // Performs a simple self-check, and returns the number of dirty items
171 // or an error code (negative value). 171 // or an error code (negative value).
172 int SelfCheck(); 172 int SelfCheck();
173 173
174 // Backend implementation. 174 // Backend implementation.
175 virtual net::CacheType GetCacheType() const OVERRIDE; 175 virtual net::CacheType GetCacheType() const override;
176 virtual int32 GetEntryCount() const OVERRIDE; 176 virtual int32 GetEntryCount() const override;
177 virtual int OpenEntry(const std::string& key, Entry** entry, 177 virtual int OpenEntry(const std::string& key, Entry** entry,
178 const CompletionCallback& callback) OVERRIDE; 178 const CompletionCallback& callback) override;
179 virtual int CreateEntry(const std::string& key, Entry** entry, 179 virtual int CreateEntry(const std::string& key, Entry** entry,
180 const CompletionCallback& callback) OVERRIDE; 180 const CompletionCallback& callback) override;
181 virtual int DoomEntry(const std::string& key, 181 virtual int DoomEntry(const std::string& key,
182 const CompletionCallback& callback) OVERRIDE; 182 const CompletionCallback& callback) override;
183 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE; 183 virtual int DoomAllEntries(const CompletionCallback& callback) override;
184 virtual int DoomEntriesBetween(base::Time initial_time, 184 virtual int DoomEntriesBetween(base::Time initial_time,
185 base::Time end_time, 185 base::Time end_time,
186 const CompletionCallback& callback) OVERRIDE; 186 const CompletionCallback& callback) override;
187 virtual int DoomEntriesSince(base::Time initial_time, 187 virtual int DoomEntriesSince(base::Time initial_time,
188 const CompletionCallback& callback) OVERRIDE; 188 const CompletionCallback& callback) override;
189 virtual scoped_ptr<Iterator> CreateIterator() OVERRIDE; 189 virtual scoped_ptr<Iterator> CreateIterator() override;
190 virtual void GetStats(StatsItems* stats) OVERRIDE; 190 virtual void GetStats(StatsItems* stats) override;
191 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 191 virtual void OnExternalCacheHit(const std::string& key) override;
192 192
193 private: 193 private:
194 friend class EvictionV3; 194 friend class EvictionV3;
195 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap; 195 typedef base::hash_map<CacheAddr, EntryImplV3*> EntriesMap;
196 class IteratorImpl; 196 class IteratorImpl;
197 class NotImplementedIterator; 197 class NotImplementedIterator;
198 class Worker; 198 class Worker;
199 199
200 void AdjustMaxCacheSize(); 200 void AdjustMaxCacheSize();
201 bool InitStats(void* stats_data); 201 bool InitStats(void* stats_data);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 scoped_ptr<base::RepeatingTimer<BackendImplV3> > timer_; // Usage timer. 272 scoped_ptr<base::RepeatingTimer<BackendImplV3> > timer_; // Usage timer.
273 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing. 273 scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing.
274 base::WeakPtrFactory<BackendImplV3> ptr_factory_; 274 base::WeakPtrFactory<BackendImplV3> ptr_factory_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(BackendImplV3); 276 DISALLOW_COPY_AND_ASSIGN(BackendImplV3);
277 }; 277 };
278 278
279 } // namespace disk_cache 279 } // namespace disk_cache
280 280
281 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_ 281 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_IMPL_V3_H_
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/backend_impl.cc ('k') | net/disk_cache/blockfile/backend_impl_v3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698