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

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

Issue 8897026: Reland r113263 rebased after revert of r113249. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const base::Time end_time, 76 const base::Time end_time,
77 OldCompletionCallback* callback) OVERRIDE; 77 OldCompletionCallback* callback) OVERRIDE;
78 virtual int DoomEntriesBetween( 78 virtual int DoomEntriesBetween(
79 const base::Time initial_time, 79 const base::Time initial_time,
80 const base::Time end_time, 80 const base::Time end_time,
81 const net::CompletionCallback& callback) OVERRIDE; 81 const net::CompletionCallback& callback) OVERRIDE;
82 virtual int DoomEntriesSince(const base::Time initial_time, 82 virtual int DoomEntriesSince(const base::Time initial_time,
83 OldCompletionCallback* callback) OVERRIDE; 83 OldCompletionCallback* callback) OVERRIDE;
84 virtual int OpenNextEntry(void** iter, Entry** next_entry, 84 virtual int OpenNextEntry(void** iter, Entry** next_entry,
85 OldCompletionCallback* callback) OVERRIDE; 85 OldCompletionCallback* callback) OVERRIDE;
86 virtual int OpenNextEntry(void** iter, Entry** next_entry,
87 const net::CompletionCallback& callback) OVERRIDE;
86 virtual void EndEnumeration(void** iter) OVERRIDE; 88 virtual void EndEnumeration(void** iter) OVERRIDE;
87 virtual void GetStats( 89 virtual void GetStats(
88 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {} 90 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {}
89 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 91 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
90 92
91 private: 93 private:
92 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap; 94 typedef base::hash_map<std::string, MemEntryImpl*> EntryMap;
93 95
94 // Old Backend interface. 96 // Old Backend interface.
95 bool OpenEntry(const std::string& key, Entry** entry); 97 bool OpenEntry(const std::string& key, Entry** entry);
(...skipping 20 matching lines...) Expand all
116 int32 current_size_; 118 int32 current_size_;
117 119
118 net::NetLog* net_log_; 120 net::NetLog* net_log_;
119 121
120 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); 122 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl);
121 }; 123 };
122 124
123 } // namespace disk_cache 125 } // namespace disk_cache
124 126
125 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ 127 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698