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

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

Issue 7461106: Inform disk cache of WebKit memory cache hits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move http check Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_IN_FLIGHT_BACKEND_IO_H_ 5 #ifndef NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_
6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ 6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void OpenEntry(const std::string& key, Entry** entry); 48 void OpenEntry(const std::string& key, Entry** entry);
49 void CreateEntry(const std::string& key, Entry** entry); 49 void CreateEntry(const std::string& key, Entry** entry);
50 void DoomEntry(const std::string& key); 50 void DoomEntry(const std::string& key);
51 void DoomAllEntries(); 51 void DoomAllEntries();
52 void DoomEntriesBetween(const base::Time initial_time, 52 void DoomEntriesBetween(const base::Time initial_time,
53 const base::Time end_time); 53 const base::Time end_time);
54 void DoomEntriesSince(const base::Time initial_time); 54 void DoomEntriesSince(const base::Time initial_time);
55 void OpenNextEntry(void** iter, Entry** next_entry); 55 void OpenNextEntry(void** iter, Entry** next_entry);
56 void OpenPrevEntry(void** iter, Entry** prev_entry); 56 void OpenPrevEntry(void** iter, Entry** prev_entry);
57 void EndEnumeration(void* iterator); 57 void EndEnumeration(void* iterator);
58 void OnExternalCacheHit(const std::string& key);
58 void CloseEntryImpl(EntryImpl* entry); 59 void CloseEntryImpl(EntryImpl* entry);
59 void DoomEntryImpl(EntryImpl* entry); 60 void DoomEntryImpl(EntryImpl* entry);
60 void FlushQueue(); // Dummy operation. 61 void FlushQueue(); // Dummy operation.
61 void RunTask(Task* task); 62 void RunTask(Task* task);
62 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, 63 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
63 int buf_len); 64 int buf_len);
64 void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, 65 void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
65 int buf_len, bool truncate); 66 int buf_len, bool truncate);
66 void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf, 67 void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
67 int buf_len); 68 int buf_len);
(...skipping 14 matching lines...) Expand all
82 OP_INIT, 83 OP_INIT,
83 OP_OPEN, 84 OP_OPEN,
84 OP_CREATE, 85 OP_CREATE,
85 OP_DOOM, 86 OP_DOOM,
86 OP_DOOM_ALL, 87 OP_DOOM_ALL,
87 OP_DOOM_BETWEEN, 88 OP_DOOM_BETWEEN,
88 OP_DOOM_SINCE, 89 OP_DOOM_SINCE,
89 OP_OPEN_NEXT, 90 OP_OPEN_NEXT,
90 OP_OPEN_PREV, 91 OP_OPEN_PREV,
91 OP_END_ENUMERATION, 92 OP_END_ENUMERATION,
93 OP_ON_EXTERNAL_CACHE_HIT,
92 OP_CLOSE_ENTRY, 94 OP_CLOSE_ENTRY,
93 OP_DOOM_ENTRY, 95 OP_DOOM_ENTRY,
94 OP_FLUSH_QUEUE, 96 OP_FLUSH_QUEUE,
95 OP_RUN_TASK, 97 OP_RUN_TASK,
96 OP_MAX_BACKEND, 98 OP_MAX_BACKEND,
97 OP_READ, 99 OP_READ,
98 OP_WRITE, 100 OP_WRITE,
99 OP_READ_SPARSE, 101 OP_READ_SPARSE,
100 OP_WRITE_SPARSE, 102 OP_WRITE_SPARSE,
101 OP_GET_RANGE, 103 OP_GET_RANGE,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void DoomEntriesBetween(const base::Time initial_time, 154 void DoomEntriesBetween(const base::Time initial_time,
153 const base::Time end_time, 155 const base::Time end_time,
154 net::CompletionCallback* callback); 156 net::CompletionCallback* callback);
155 void DoomEntriesSince(const base::Time initial_time, 157 void DoomEntriesSince(const base::Time initial_time,
156 net::CompletionCallback* callback); 158 net::CompletionCallback* callback);
157 void OpenNextEntry(void** iter, Entry** next_entry, 159 void OpenNextEntry(void** iter, Entry** next_entry,
158 net::CompletionCallback* callback); 160 net::CompletionCallback* callback);
159 void OpenPrevEntry(void** iter, Entry** prev_entry, 161 void OpenPrevEntry(void** iter, Entry** prev_entry,
160 net::CompletionCallback* callback); 162 net::CompletionCallback* callback);
161 void EndEnumeration(void* iterator); 163 void EndEnumeration(void* iterator);
164 void OnExternalCacheHit(const std::string& key);
162 void CloseEntryImpl(EntryImpl* entry); 165 void CloseEntryImpl(EntryImpl* entry);
163 void DoomEntryImpl(EntryImpl* entry); 166 void DoomEntryImpl(EntryImpl* entry);
164 void FlushQueue(net::CompletionCallback* callback); 167 void FlushQueue(net::CompletionCallback* callback);
165 void RunTask(Task* task, net::CompletionCallback* callback); 168 void RunTask(Task* task, net::CompletionCallback* callback);
166 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, 169 void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
167 int buf_len, net::CompletionCallback* callback); 170 int buf_len, net::CompletionCallback* callback);
168 void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf, 171 void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
169 int buf_len, bool truncate, net::CompletionCallback* callback); 172 int buf_len, bool truncate, net::CompletionCallback* callback);
170 void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf, 173 void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
171 int buf_len, net::CompletionCallback* callback); 174 int buf_len, net::CompletionCallback* callback);
(...skipping 24 matching lines...) Expand all
196 199
197 BackendImpl* backend_; 200 BackendImpl* backend_;
198 scoped_refptr<base::MessageLoopProxy> background_thread_; 201 scoped_refptr<base::MessageLoopProxy> background_thread_;
199 202
200 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); 203 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO);
201 }; 204 };
202 205
203 } // namespace disk_cache 206 } // namespace disk_cache
204 207
205 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ 208 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698