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

Side by Side Diff: net/disk_cache/memory/mem_backend_impl.h

Issue 1304363013: Add a size estimation mechanism to StoragePartitionHttpCacheDataRemover. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static_cast Created 5 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/disk_cache_test_base.cc ('k') | net/disk_cache/memory/mem_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) 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_MEMORY_MEM_BACKEND_IMPL_H_ 7 #ifndef NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_
8 #define NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ 8 #define NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 Entry** entry, 73 Entry** entry,
74 const CompletionCallback& callback) override; 74 const CompletionCallback& callback) override;
75 int DoomEntry(const std::string& key, 75 int DoomEntry(const std::string& key,
76 const CompletionCallback& callback) override; 76 const CompletionCallback& callback) override;
77 int DoomAllEntries(const CompletionCallback& callback) override; 77 int DoomAllEntries(const CompletionCallback& callback) override;
78 int DoomEntriesBetween(base::Time initial_time, 78 int DoomEntriesBetween(base::Time initial_time,
79 base::Time end_time, 79 base::Time end_time,
80 const CompletionCallback& callback) override; 80 const CompletionCallback& callback) override;
81 int DoomEntriesSince(base::Time initial_time, 81 int DoomEntriesSince(base::Time initial_time,
82 const CompletionCallback& callback) override; 82 const CompletionCallback& callback) override;
83 int CalculateSizeOfAllEntries(const CompletionCallback& callback) override;
83 scoped_ptr<Iterator> CreateIterator() override; 84 scoped_ptr<Iterator> CreateIterator() override;
84 void GetStats(base::StringPairs* stats) override {} 85 void GetStats(base::StringPairs* stats) override {}
85 void OnExternalCacheHit(const std::string& key) override; 86 void OnExternalCacheHit(const std::string& key) override;
86 87
87 private: 88 private:
88 class MemIterator; 89 class MemIterator;
89 friend class MemIterator; 90 friend class MemIterator;
90 91
91 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; 92 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap;
92 93
(...skipping 23 matching lines...) Expand all
116 net::NetLog* net_log_; 117 net::NetLog* net_log_;
117 118
118 base::WeakPtrFactory<MemBackendImpl> weak_factory_; 119 base::WeakPtrFactory<MemBackendImpl> weak_factory_;
119 120
120 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); 121 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl);
121 }; 122 };
122 123
123 } // namespace disk_cache 124 } // namespace disk_cache
124 125
125 #endif // NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_ 126 #endif // NET_DISK_CACHE_MEMORY_MEM_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/disk_cache_test_base.cc ('k') | net/disk_cache/memory/mem_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698