| OLD | NEW |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Entry** entry, | 98 Entry** entry, |
| 99 const CompletionCallback& callback) override; | 99 const CompletionCallback& callback) override; |
| 100 int DoomEntry(const std::string& key, | 100 int DoomEntry(const std::string& key, |
| 101 const CompletionCallback& callback) override; | 101 const CompletionCallback& callback) override; |
| 102 int DoomAllEntries(const CompletionCallback& callback) override; | 102 int DoomAllEntries(const CompletionCallback& callback) override; |
| 103 int DoomEntriesBetween(base::Time initial_time, | 103 int DoomEntriesBetween(base::Time initial_time, |
| 104 base::Time end_time, | 104 base::Time end_time, |
| 105 const CompletionCallback& callback) override; | 105 const CompletionCallback& callback) override; |
| 106 int DoomEntriesSince(base::Time initial_time, | 106 int DoomEntriesSince(base::Time initial_time, |
| 107 const CompletionCallback& callback) override; | 107 const CompletionCallback& callback) override; |
| 108 int CalculateSizeOfAllEntries(const CompletionCallback& callback) override; |
| 108 scoped_ptr<Iterator> CreateIterator() override; | 109 scoped_ptr<Iterator> CreateIterator() override; |
| 109 void GetStats(base::StringPairs* stats) override; | 110 void GetStats(base::StringPairs* stats) override; |
| 110 void OnExternalCacheHit(const std::string& key) override; | 111 void OnExternalCacheHit(const std::string& key) override; |
| 111 | 112 |
| 112 private: | 113 private: |
| 113 class SimpleIterator; | 114 class SimpleIterator; |
| 114 friend class SimpleIterator; | 115 friend class SimpleIterator; |
| 115 | 116 |
| 116 typedef base::hash_map<uint64, SimpleEntryImpl*> EntryMap; | 117 typedef base::hash_map<uint64, SimpleEntryImpl*> EntryMap; |
| 117 | 118 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // is complete. The base::Closure map target is used to store deferred | 204 // is complete. The base::Closure map target is used to store deferred |
| 204 // operations to be run at the completion of the Doom. | 205 // operations to be run at the completion of the Doom. |
| 205 base::hash_map<uint64, std::vector<base::Closure> > entries_pending_doom_; | 206 base::hash_map<uint64, std::vector<base::Closure> > entries_pending_doom_; |
| 206 | 207 |
| 207 net::NetLog* const net_log_; | 208 net::NetLog* const net_log_; |
| 208 }; | 209 }; |
| 209 | 210 |
| 210 } // namespace disk_cache | 211 } // namespace disk_cache |
| 211 | 212 |
| 212 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ | 213 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ |
| OLD | NEW |