OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 | 10 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 bool reading_; // We are already reading. | 332 bool reading_; // We are already reading. |
333 bool invalid_range_; // We may bypass the cache for this request. | 333 bool invalid_range_; // We may bypass the cache for this request. |
334 bool enable_range_support_; | 334 bool enable_range_support_; |
335 bool truncated_; // We don't have all the response data. | 335 bool truncated_; // We don't have all the response data. |
336 bool server_responded_206_; | 336 bool server_responded_206_; |
337 bool cache_pending_; // We are waiting for the HttpCache. | 337 bool cache_pending_; // We are waiting for the HttpCache. |
338 scoped_refptr<IOBuffer> read_buf_; | 338 scoped_refptr<IOBuffer> read_buf_; |
339 int io_buf_len_; | 339 int io_buf_len_; |
340 int read_offset_; | 340 int read_offset_; |
341 int effective_load_flags_; | 341 int effective_load_flags_; |
| 342 int write_len_; |
342 scoped_ptr<PartialData> partial_; // We are dealing with range requests. | 343 scoped_ptr<PartialData> partial_; // We are dealing with range requests. |
343 uint64 final_upload_progress_; | 344 uint64 final_upload_progress_; |
344 CompletionCallbackImpl<Transaction> io_callback_; | 345 CompletionCallbackImpl<Transaction> io_callback_; |
345 scoped_refptr<CancelableCompletionCallback<Transaction> > cache_callback_; | 346 scoped_refptr<CancelableCompletionCallback<Transaction> > cache_callback_; |
346 scoped_refptr<CancelableCompletionCallback<Transaction> > | 347 scoped_refptr<CancelableCompletionCallback<Transaction> > |
347 write_headers_callback_; | 348 write_headers_callback_; |
348 }; | 349 }; |
349 | 350 |
350 } // namespace net | 351 } // namespace net |
351 | 352 |
352 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 353 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
OLD | NEW |