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

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

Issue 8792006: base::Bind: Convert chrome_benchmarking_message_filter.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/in_flight_backend_io.cc ('k') | net/disk_cache/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MEM_BACKEND_IMPL_H__ 7 #ifndef NET_DISK_CACHE_MEM_BACKEND_IMPL_H__
8 #define NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ 8 #define NET_DISK_CACHE_MEM_BACKEND_IMPL_H__
9 #pragma once 9 #pragma once
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const base::Time end_time, 80 const base::Time end_time,
81 OldCompletionCallback* callback) OVERRIDE; 81 OldCompletionCallback* callback) OVERRIDE;
82 virtual int DoomEntriesBetween( 82 virtual int DoomEntriesBetween(
83 const base::Time initial_time, 83 const base::Time initial_time,
84 const base::Time end_time, 84 const base::Time end_time,
85 const net::CompletionCallback& callback) OVERRIDE; 85 const net::CompletionCallback& callback) OVERRIDE;
86 virtual int DoomEntriesSince(const base::Time initial_time, 86 virtual int DoomEntriesSince(const base::Time initial_time,
87 OldCompletionCallback* callback) OVERRIDE; 87 OldCompletionCallback* callback) OVERRIDE;
88 virtual int OpenNextEntry(void** iter, Entry** next_entry, 88 virtual int OpenNextEntry(void** iter, Entry** next_entry,
89 OldCompletionCallback* callback) OVERRIDE; 89 OldCompletionCallback* callback) OVERRIDE;
90 virtual int OpenNextEntry(void** iter, Entry** next_entry,
91 const net::CompletionCallback& callback) OVERRIDE;
90 virtual void EndEnumeration(void** iter) OVERRIDE; 92 virtual void EndEnumeration(void** iter) OVERRIDE;
91 virtual void GetStats( 93 virtual void GetStats(
92 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {} 94 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {}
93 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 95 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
94 96
95 private: 97 private:
96 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; 98 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap;
97 99
98 // Old Backend interface. 100 // Old Backend interface.
99 bool OpenEntry(const std::string& key, Entry** entry); 101 bool OpenEntry(const std::string& key, Entry** entry);
(...skipping 20 matching lines...) Expand all
120 int32 current_size_; 122 int32 current_size_;
121 123
122 net::NetLog* net_log_; 124 net::NetLog* net_log_;
123 125
124 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); 126 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl);
125 }; 127 };
126 128
127 } // namespace disk_cache 129 } // namespace disk_cache
128 130
129 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ 131 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__
OLDNEW
« no previous file with comments | « net/disk_cache/in_flight_backend_io.cc ('k') | net/disk_cache/mem_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698