OLD | NEW |
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 // This file declares HttpCache::Transaction, a private class of HttpCache so | 5 // This file declares HttpCache::Transaction, a private class of HttpCache so |
6 // it should only be included by http_cache.cc | 6 // it should only be included by http_cache.cc |
7 | 7 |
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 STATE_NETWORK_READ_COMPLETE, | 134 STATE_NETWORK_READ_COMPLETE, |
135 STATE_INIT_ENTRY, | 135 STATE_INIT_ENTRY, |
136 STATE_OPEN_ENTRY, | 136 STATE_OPEN_ENTRY, |
137 STATE_OPEN_ENTRY_COMPLETE, | 137 STATE_OPEN_ENTRY_COMPLETE, |
138 STATE_CREATE_ENTRY, | 138 STATE_CREATE_ENTRY, |
139 STATE_CREATE_ENTRY_COMPLETE, | 139 STATE_CREATE_ENTRY_COMPLETE, |
140 STATE_DOOM_ENTRY, | 140 STATE_DOOM_ENTRY, |
141 STATE_DOOM_ENTRY_COMPLETE, | 141 STATE_DOOM_ENTRY_COMPLETE, |
142 STATE_ADD_TO_ENTRY, | 142 STATE_ADD_TO_ENTRY, |
143 STATE_ADD_TO_ENTRY_COMPLETE, | 143 STATE_ADD_TO_ENTRY_COMPLETE, |
| 144 STATE_NOTIFY_BEFORE_SEND_HEADERS, |
| 145 STATE_NOTIFY_BEFORE_SEND_HEADERS_COMPLETE, |
144 STATE_START_PARTIAL_CACHE_VALIDATION, | 146 STATE_START_PARTIAL_CACHE_VALIDATION, |
145 STATE_COMPLETE_PARTIAL_CACHE_VALIDATION, | 147 STATE_COMPLETE_PARTIAL_CACHE_VALIDATION, |
146 STATE_UPDATE_CACHED_RESPONSE, | 148 STATE_UPDATE_CACHED_RESPONSE, |
147 STATE_UPDATE_CACHED_RESPONSE_COMPLETE, | 149 STATE_UPDATE_CACHED_RESPONSE_COMPLETE, |
148 STATE_OVERWRITE_CACHED_RESPONSE, | 150 STATE_OVERWRITE_CACHED_RESPONSE, |
149 STATE_TRUNCATE_CACHED_DATA, | 151 STATE_TRUNCATE_CACHED_DATA, |
150 STATE_TRUNCATE_CACHED_DATA_COMPLETE, | 152 STATE_TRUNCATE_CACHED_DATA_COMPLETE, |
151 STATE_TRUNCATE_CACHED_METADATA, | 153 STATE_TRUNCATE_CACHED_METADATA, |
152 STATE_TRUNCATE_CACHED_METADATA_COMPLETE, | 154 STATE_TRUNCATE_CACHED_METADATA_COMPLETE, |
153 STATE_PARTIAL_HEADERS_RECEIVED, | 155 STATE_PARTIAL_HEADERS_RECEIVED, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 int DoNetworkReadComplete(int result); | 190 int DoNetworkReadComplete(int result); |
189 int DoInitEntry(); | 191 int DoInitEntry(); |
190 int DoOpenEntry(); | 192 int DoOpenEntry(); |
191 int DoOpenEntryComplete(int result); | 193 int DoOpenEntryComplete(int result); |
192 int DoCreateEntry(); | 194 int DoCreateEntry(); |
193 int DoCreateEntryComplete(int result); | 195 int DoCreateEntryComplete(int result); |
194 int DoDoomEntry(); | 196 int DoDoomEntry(); |
195 int DoDoomEntryComplete(int result); | 197 int DoDoomEntryComplete(int result); |
196 int DoAddToEntry(); | 198 int DoAddToEntry(); |
197 int DoAddToEntryComplete(int result); | 199 int DoAddToEntryComplete(int result); |
| 200 int DoNotifyBeforeSendHeaders(); |
| 201 int DoNotifyBeforeSendHeadersComplete(int result); |
198 int DoStartPartialCacheValidation(); | 202 int DoStartPartialCacheValidation(); |
199 int DoCompletePartialCacheValidation(int result); | 203 int DoCompletePartialCacheValidation(int result); |
200 int DoUpdateCachedResponse(); | 204 int DoUpdateCachedResponse(); |
201 int DoUpdateCachedResponseComplete(int result); | 205 int DoUpdateCachedResponseComplete(int result); |
202 int DoOverwriteCachedResponse(); | 206 int DoOverwriteCachedResponse(); |
203 int DoTruncateCachedData(); | 207 int DoTruncateCachedData(); |
204 int DoTruncateCachedDataComplete(int result); | 208 int DoTruncateCachedDataComplete(int result); |
205 int DoTruncateCachedMetadata(); | 209 int DoTruncateCachedMetadata(); |
206 int DoTruncateCachedMetadataComplete(int result); | 210 int DoTruncateCachedMetadataComplete(int result); |
207 int DoPartialHeadersReceived(); | 211 int DoPartialHeadersReceived(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 uint64 final_upload_progress_; | 355 uint64 final_upload_progress_; |
352 CompletionCallbackImpl<Transaction> io_callback_; | 356 CompletionCallbackImpl<Transaction> io_callback_; |
353 scoped_refptr<CancelableCompletionCallback<Transaction> > cache_callback_; | 357 scoped_refptr<CancelableCompletionCallback<Transaction> > cache_callback_; |
354 scoped_refptr<CancelableCompletionCallback<Transaction> > | 358 scoped_refptr<CancelableCompletionCallback<Transaction> > |
355 write_headers_callback_; | 359 write_headers_callback_; |
356 }; | 360 }; |
357 | 361 |
358 } // namespace net | 362 } // namespace net |
359 | 363 |
360 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 364 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
OLD | NEW |