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

Side by Side Diff: net/disk_cache/simple/simple_backend_impl.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/memory/mem_entry_impl.h ('k') | net/disk_cache/simple/simple_backend_impl.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // run new operations for this |entry_hash| until the Doom is completed. 78 // run new operations for this |entry_hash| until the Doom is completed.
79 void OnDoomStart(uint64 entry_hash); 79 void OnDoomStart(uint64 entry_hash);
80 80
81 // The entry for |entry_hash| has been successfully doomed, we can now allow 81 // The entry for |entry_hash| has been successfully doomed, we can now allow
82 // operations on this entry, and we can run any operations enqueued while the 82 // operations on this entry, and we can run any operations enqueued while the
83 // doom completed. 83 // doom completed.
84 void OnDoomComplete(uint64 entry_hash); 84 void OnDoomComplete(uint64 entry_hash);
85 85
86 // SimpleIndexDelegate: 86 // SimpleIndexDelegate:
87 virtual void DoomEntries(std::vector<uint64>* entry_hashes, 87 virtual void DoomEntries(std::vector<uint64>* entry_hashes,
88 const CompletionCallback& callback) OVERRIDE; 88 const CompletionCallback& callback) override;
89 89
90 // Backend: 90 // Backend:
91 virtual net::CacheType GetCacheType() const OVERRIDE; 91 virtual net::CacheType GetCacheType() const override;
92 virtual int32 GetEntryCount() const OVERRIDE; 92 virtual int32 GetEntryCount() const override;
93 virtual int OpenEntry(const std::string& key, Entry** entry, 93 virtual int OpenEntry(const std::string& key, Entry** entry,
94 const CompletionCallback& callback) OVERRIDE; 94 const CompletionCallback& callback) override;
95 virtual int CreateEntry(const std::string& key, Entry** entry, 95 virtual int CreateEntry(const std::string& key, Entry** entry,
96 const CompletionCallback& callback) OVERRIDE; 96 const CompletionCallback& callback) override;
97 virtual int DoomEntry(const std::string& key, 97 virtual int DoomEntry(const std::string& key,
98 const CompletionCallback& callback) OVERRIDE; 98 const CompletionCallback& callback) override;
99 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE; 99 virtual int DoomAllEntries(const CompletionCallback& callback) override;
100 virtual int DoomEntriesBetween(base::Time initial_time, 100 virtual int DoomEntriesBetween(base::Time initial_time,
101 base::Time end_time, 101 base::Time end_time,
102 const CompletionCallback& callback) OVERRIDE; 102 const CompletionCallback& callback) override;
103 virtual int DoomEntriesSince(base::Time initial_time, 103 virtual int DoomEntriesSince(base::Time initial_time,
104 const CompletionCallback& callback) OVERRIDE; 104 const CompletionCallback& callback) override;
105 virtual scoped_ptr<Iterator> CreateIterator() OVERRIDE; 105 virtual scoped_ptr<Iterator> CreateIterator() override;
106 virtual void GetStats( 106 virtual void GetStats(
107 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE; 107 std::vector<std::pair<std::string, std::string> >* stats) override;
108 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 108 virtual void OnExternalCacheHit(const std::string& key) override;
109 109
110 private: 110 private:
111 class SimpleIterator; 111 class SimpleIterator;
112 friend class SimpleIterator; 112 friend class SimpleIterator;
113 113
114 typedef base::hash_map<uint64, SimpleEntryImpl*> EntryMap; 114 typedef base::hash_map<uint64, SimpleEntryImpl*> EntryMap;
115 115
116 typedef base::Callback<void(base::Time mtime, uint64 max_size, int result)> 116 typedef base::Callback<void(base::Time mtime, uint64 max_size, int result)>
117 InitializeIndexCallback; 117 InitializeIndexCallback;
118 118
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // is complete. The base::Closure map target is used to store deferred 201 // is complete. The base::Closure map target is used to store deferred
202 // operations to be run at the completion of the Doom. 202 // operations to be run at the completion of the Doom.
203 base::hash_map<uint64, std::vector<base::Closure> > entries_pending_doom_; 203 base::hash_map<uint64, std::vector<base::Closure> > entries_pending_doom_;
204 204
205 net::NetLog* const net_log_; 205 net::NetLog* const net_log_;
206 }; 206 };
207 207
208 } // namespace disk_cache 208 } // namespace disk_cache
209 209
210 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 210 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/memory/mem_entry_impl.h ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698