Chromium Code Reviews| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 STATE_UPDATE_CACHED_RESPONSE, | 146 STATE_UPDATE_CACHED_RESPONSE, |
| 147 STATE_UPDATE_CACHED_RESPONSE_COMPLETE, | 147 STATE_UPDATE_CACHED_RESPONSE_COMPLETE, |
| 148 STATE_OVERWRITE_CACHED_RESPONSE, | 148 STATE_OVERWRITE_CACHED_RESPONSE, |
| 149 STATE_TRUNCATE_CACHED_DATA, | 149 STATE_TRUNCATE_CACHED_DATA, |
| 150 STATE_TRUNCATE_CACHED_DATA_COMPLETE, | 150 STATE_TRUNCATE_CACHED_DATA_COMPLETE, |
| 151 STATE_TRUNCATE_CACHED_METADATA, | 151 STATE_TRUNCATE_CACHED_METADATA, |
| 152 STATE_TRUNCATE_CACHED_METADATA_COMPLETE, | 152 STATE_TRUNCATE_CACHED_METADATA_COMPLETE, |
| 153 STATE_PARTIAL_HEADERS_RECEIVED, | 153 STATE_PARTIAL_HEADERS_RECEIVED, |
| 154 STATE_CACHE_READ_RESPONSE, | 154 STATE_CACHE_READ_RESPONSE, |
| 155 STATE_CACHE_READ_RESPONSE_COMPLETE, | 155 STATE_CACHE_READ_RESPONSE_COMPLETE, |
| 156 STATE_CACHE_NOTIFY_BEFORE_SEND_HEADERS, | |
|
rvargas (doing something else)
2011/03/23 00:54:35
Given that these states are not related to the dis
Matt Perry
2011/03/24 00:11:25
Do you mean that they should be called in that ord
rvargas (doing something else)
2011/03/24 18:16:02
yes, the latter.
| |
| 157 STATE_CACHE_NOTIFY_BEFORE_SEND_HEADERS_COMPLETE, | |
| 156 STATE_CACHE_WRITE_RESPONSE, | 158 STATE_CACHE_WRITE_RESPONSE, |
| 157 STATE_CACHE_WRITE_TRUNCATED_RESPONSE, | 159 STATE_CACHE_WRITE_TRUNCATED_RESPONSE, |
| 158 STATE_CACHE_WRITE_RESPONSE_COMPLETE, | 160 STATE_CACHE_WRITE_RESPONSE_COMPLETE, |
| 159 STATE_CACHE_READ_METADATA, | 161 STATE_CACHE_READ_METADATA, |
| 160 STATE_CACHE_READ_METADATA_COMPLETE, | 162 STATE_CACHE_READ_METADATA_COMPLETE, |
| 161 STATE_CACHE_QUERY_DATA, | 163 STATE_CACHE_QUERY_DATA, |
| 162 STATE_CACHE_QUERY_DATA_COMPLETE, | 164 STATE_CACHE_QUERY_DATA_COMPLETE, |
| 163 STATE_CACHE_READ_DATA, | 165 STATE_CACHE_READ_DATA, |
| 164 STATE_CACHE_READ_DATA_COMPLETE, | 166 STATE_CACHE_READ_DATA_COMPLETE, |
| 165 STATE_CACHE_WRITE_DATA, | 167 STATE_CACHE_WRITE_DATA, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 int DoUpdateCachedResponse(); | 202 int DoUpdateCachedResponse(); |
| 201 int DoUpdateCachedResponseComplete(int result); | 203 int DoUpdateCachedResponseComplete(int result); |
| 202 int DoOverwriteCachedResponse(); | 204 int DoOverwriteCachedResponse(); |
| 203 int DoTruncateCachedData(); | 205 int DoTruncateCachedData(); |
| 204 int DoTruncateCachedDataComplete(int result); | 206 int DoTruncateCachedDataComplete(int result); |
| 205 int DoTruncateCachedMetadata(); | 207 int DoTruncateCachedMetadata(); |
| 206 int DoTruncateCachedMetadataComplete(int result); | 208 int DoTruncateCachedMetadataComplete(int result); |
| 207 int DoPartialHeadersReceived(); | 209 int DoPartialHeadersReceived(); |
| 208 int DoCacheReadResponse(); | 210 int DoCacheReadResponse(); |
| 209 int DoCacheReadResponseComplete(int result); | 211 int DoCacheReadResponseComplete(int result); |
| 212 int DoCacheNotifyBeforeSendHeaders(int result); | |
| 213 int DoCacheNotifyBeforeSendHeadersComplete(int result); | |
| 210 int DoCacheWriteResponse(); | 214 int DoCacheWriteResponse(); |
| 211 int DoCacheWriteTruncatedResponse(); | 215 int DoCacheWriteTruncatedResponse(); |
| 212 int DoCacheWriteResponseComplete(int result); | 216 int DoCacheWriteResponseComplete(int result); |
| 213 int DoCacheReadMetadata(); | 217 int DoCacheReadMetadata(); |
| 214 int DoCacheReadMetadataComplete(int result); | 218 int DoCacheReadMetadataComplete(int result); |
| 215 int DoCacheQueryData(); | 219 int DoCacheQueryData(); |
| 216 int DoCacheQueryDataComplete(int result); | 220 int DoCacheQueryDataComplete(int result); |
| 217 int DoCacheReadData(); | 221 int DoCacheReadData(); |
| 218 int DoCacheReadDataComplete(int result); | 222 int DoCacheReadDataComplete(int result); |
| 219 int DoCacheWriteData(int num_bytes); | 223 int DoCacheWriteData(int num_bytes); |
| (...skipping 131 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 |