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

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

Issue 8896024: Reland r113261 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
« 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Backend interface. 65 // Backend interface.
66 virtual int32 GetEntryCount() const OVERRIDE; 66 virtual int32 GetEntryCount() const OVERRIDE;
67 virtual int OpenEntry(const std::string& key, Entry** entry, 67 virtual int OpenEntry(const std::string& key, Entry** entry,
68 OldCompletionCallback* callback) OVERRIDE; 68 OldCompletionCallback* callback) OVERRIDE;
69 virtual int CreateEntry(const std::string& key, Entry** entry, 69 virtual int CreateEntry(const std::string& key, Entry** entry,
70 OldCompletionCallback* callback) OVERRIDE; 70 OldCompletionCallback* callback) OVERRIDE;
71 virtual int DoomEntry(const std::string& key, 71 virtual int DoomEntry(const std::string& key,
72 OldCompletionCallback* callback) OVERRIDE; 72 OldCompletionCallback* callback) OVERRIDE;
73 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE; 73 virtual int DoomAllEntries(OldCompletionCallback* callback) OVERRIDE;
74 virtual int DoomAllEntries(const net::CompletionCallback& callback) OVERRIDE;
74 virtual int DoomEntriesBetween(const base::Time initial_time, 75 virtual int DoomEntriesBetween(const base::Time initial_time,
75 const base::Time end_time, 76 const base::Time end_time,
76 OldCompletionCallback* callback) OVERRIDE; 77 OldCompletionCallback* callback) OVERRIDE;
78 virtual int DoomEntriesBetween(
79 const base::Time initial_time,
80 const base::Time end_time,
81 const net::CompletionCallback& callback) OVERRIDE;
77 virtual int DoomEntriesSince(const base::Time initial_time, 82 virtual int DoomEntriesSince(const base::Time initial_time,
78 OldCompletionCallback* callback) OVERRIDE; 83 OldCompletionCallback* callback) OVERRIDE;
79 virtual int OpenNextEntry(void** iter, Entry** next_entry, 84 virtual int OpenNextEntry(void** iter, Entry** next_entry,
80 OldCompletionCallback* callback) OVERRIDE; 85 OldCompletionCallback* callback) OVERRIDE;
81 virtual void EndEnumeration(void** iter) OVERRIDE; 86 virtual void EndEnumeration(void** iter) OVERRIDE;
82 virtual void GetStats( 87 virtual void GetStats(
83 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {} 88 std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE {}
84 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 89 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
85 90
86 private: 91 private:
(...skipping 24 matching lines...) Expand all
111 int32 current_size_; 116 int32 current_size_;
112 117
113 net::NetLog* net_log_; 118 net::NetLog* net_log_;
114 119
115 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); 120 DISALLOW_COPY_AND_ASSIGN(MemBackendImpl);
116 }; 121 };
117 122
118 } // namespace disk_cache 123 } // namespace disk_cache
119 124
120 #endif // NET_DISK_CACHE_MEM_BACKEND_IMPL_H__ 125 #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