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

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

Issue 8798001: base::Bind: Convert browsing_data_remover. (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/backend_impl.cc ('k') | net/disk_cache/in_flight_backend_io.h » ('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 // Defines the public interface of the disk cache. For more details see 5 // Defines the public interface of the disk cache. For more details see
6 // http://dev.chromium.org/developers/design-documents/network-stack/disk-cache 6 // http://dev.chromium.org/developers/design-documents/network-stack/disk-cache
7 7
8 #ifndef NET_DISK_CACHE_DISK_CACHE_H_ 8 #ifndef NET_DISK_CACHE_DISK_CACHE_H_
9 #define NET_DISK_CACHE_DISK_CACHE_H_ 9 #define NET_DISK_CACHE_DISK_CACHE_H_
10 #pragma once 10 #pragma once
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Marks the entry, specified by the given key, for deletion. The return value 95 // Marks the entry, specified by the given key, for deletion. The return value
96 // is a net error code. If this method returns ERR_IO_PENDING, the |callback| 96 // is a net error code. If this method returns ERR_IO_PENDING, the |callback|
97 // will be invoked after the entry is doomed. 97 // will be invoked after the entry is doomed.
98 virtual int DoomEntry(const std::string& key, 98 virtual int DoomEntry(const std::string& key,
99 OldCompletionCallback* callback) = 0; 99 OldCompletionCallback* callback) = 0;
100 100
101 // Marks all entries for deletion. The return value is a net error code. If 101 // Marks all entries for deletion. The return value is a net error code. If
102 // this method returns ERR_IO_PENDING, the |callback| will be invoked when the 102 // this method returns ERR_IO_PENDING, the |callback| will be invoked when the
103 // operation completes. 103 // operation completes.
104 virtual int DoomAllEntries(OldCompletionCallback* callback) = 0; 104 virtual int DoomAllEntries(OldCompletionCallback* callback) = 0;
105 virtual int DoomAllEntries(const net::CompletionCallback& callback) = 0;
105 106
106 // Marks a range of entries for deletion. This supports unbounded deletes in 107 // Marks a range of entries for deletion. This supports unbounded deletes in
107 // either direction by using null Time values for either argument. The return 108 // either direction by using null Time values for either argument. The return
108 // value is a net error code. If this method returns ERR_IO_PENDING, the 109 // value is a net error code. If this method returns ERR_IO_PENDING, the
109 // |callback| will be invoked when the operation completes. 110 // |callback| will be invoked when the operation completes.
110 virtual int DoomEntriesBetween(const base::Time initial_time, 111 virtual int DoomEntriesBetween(const base::Time initial_time,
111 const base::Time end_time, 112 const base::Time end_time,
112 OldCompletionCallback* callback) = 0; 113 OldCompletionCallback* callback) = 0;
114 virtual int DoomEntriesBetween(const base::Time initial_time,
115 const base::Time end_time,
116 const net::CompletionCallback& callback) = 0;
113 117
114 // Marks all entries accessed since |initial_time| for deletion. The return 118 // Marks all entries accessed since |initial_time| for deletion. The return
115 // value is a net error code. If this method returns ERR_IO_PENDING, the 119 // value is a net error code. If this method returns ERR_IO_PENDING, the
116 // |callback| will be invoked when the operation completes. 120 // |callback| will be invoked when the operation completes.
117 virtual int DoomEntriesSince(const base::Time initial_time, 121 virtual int DoomEntriesSince(const base::Time initial_time,
118 OldCompletionCallback* callback) = 0; 122 OldCompletionCallback* callback) = 0;
119 123
120 // Enumerates the cache. Initialize |iter| to NULL before calling this method 124 // Enumerates the cache. Initialize |iter| to NULL before calling this method
121 // the first time. That will cause the enumeration to start at the head of 125 // the first time. That will cause the enumeration to start at the head of
122 // the cache. For subsequent calls, pass the same |iter| pointer again without 126 // the cache. For subsequent calls, pass the same |iter| pointer again without
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Note: This method is deprecated. 308 // Note: This method is deprecated.
305 virtual int ReadyForSparseIO(OldCompletionCallback* completion_callback) = 0; 309 virtual int ReadyForSparseIO(OldCompletionCallback* completion_callback) = 0;
306 310
307 protected: 311 protected:
308 virtual ~Entry() {} 312 virtual ~Entry() {}
309 }; 313 };
310 314
311 } // namespace disk_cache 315 } // namespace disk_cache
312 316
313 #endif // NET_DISK_CACHE_DISK_CACHE_H_ 317 #endif // NET_DISK_CACHE_DISK_CACHE_H_
OLDNEW
« no previous file with comments | « net/disk_cache/backend_impl.cc ('k') | net/disk_cache/in_flight_backend_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698