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

Side by Side Diff: net/disk_cache/simple/simple_backend_impl.h

Issue 2779733002: [HttpCache] Store some memcache info to memory dumps for debugging (Closed)
Patch Set: Rebase xunjieli's change Created 3 years, 8 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_backend_impl.cc ('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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 int DoomEntriesSince(base::Time initial_time, 110 int DoomEntriesSince(base::Time initial_time,
111 const CompletionCallback& callback) override; 111 const CompletionCallback& callback) override;
112 int CalculateSizeOfAllEntries(const CompletionCallback& callback) override; 112 int CalculateSizeOfAllEntries(const CompletionCallback& callback) override;
113 int CalculateSizeOfEntriesBetween( 113 int CalculateSizeOfEntriesBetween(
114 base::Time initial_time, 114 base::Time initial_time,
115 base::Time end_time, 115 base::Time end_time,
116 const CompletionCallback& callback) override; 116 const CompletionCallback& callback) override;
117 std::unique_ptr<Iterator> CreateIterator() override; 117 std::unique_ptr<Iterator> CreateIterator() override;
118 void GetStats(base::StringPairs* stats) override; 118 void GetStats(base::StringPairs* stats) override;
119 void OnExternalCacheHit(const std::string& key) override; 119 void OnExternalCacheHit(const std::string& key) override;
120 size_t EstimateMemoryUsage() const override; 120 size_t DumpMemoryStats(
121 base::trace_event::ProcessMemoryDump* pmd,
122 const std::string& parent_absolute_name) const override;
121 123
122 private: 124 private:
123 class SimpleIterator; 125 class SimpleIterator;
124 friend class SimpleIterator; 126 friend class SimpleIterator;
125 127
126 using EntryMap = std::unordered_map<uint64_t, SimpleEntryImpl*>; 128 using EntryMap = std::unordered_map<uint64_t, SimpleEntryImpl*>;
127 129
128 using InitializeIndexCallback = 130 using InitializeIndexCallback =
129 base::Callback<void(base::Time mtime, uint64_t max_size, int result)>; 131 base::Callback<void(base::Time mtime, uint64_t max_size, int result)>;
130 132
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // operations to be run at the completion of the Doom. 230 // operations to be run at the completion of the Doom.
229 std::unordered_map<uint64_t, std::vector<base::Closure>> 231 std::unordered_map<uint64_t, std::vector<base::Closure>>
230 entries_pending_doom_; 232 entries_pending_doom_;
231 233
232 net::NetLog* const net_log_; 234 net::NetLog* const net_log_;
233 }; 235 };
234 236
235 } // namespace disk_cache 237 } // namespace disk_cache
236 238
237 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 239 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/memory/mem_backend_impl.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698