OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 State target_state_; | 406 State target_state_; |
407 bool reading_; // We are already reading. | 407 bool reading_; // We are already reading. |
408 bool invalid_range_; // We may bypass the cache for this request. | 408 bool invalid_range_; // We may bypass the cache for this request. |
409 bool truncated_; // We don't have all the response data. | 409 bool truncated_; // We don't have all the response data. |
410 bool is_sparse_; // The data is stored in sparse byte ranges. | 410 bool is_sparse_; // The data is stored in sparse byte ranges. |
411 bool range_requested_; // The user requested a byte range. | 411 bool range_requested_; // The user requested a byte range. |
412 bool handling_206_; // We must deal with this 206 response. | 412 bool handling_206_; // We must deal with this 206 response. |
413 bool cache_pending_; // We are waiting for the HttpCache. | 413 bool cache_pending_; // We are waiting for the HttpCache. |
414 bool done_reading_; | 414 bool done_reading_; |
415 bool vary_mismatch_; // The request doesn't match the stored vary data. | 415 bool vary_mismatch_; // The request doesn't match the stored vary data. |
| 416 bool couldnt_conditionalize_request_; |
416 scoped_refptr<IOBuffer> read_buf_; | 417 scoped_refptr<IOBuffer> read_buf_; |
417 int io_buf_len_; | 418 int io_buf_len_; |
418 int read_offset_; | 419 int read_offset_; |
419 int effective_load_flags_; | 420 int effective_load_flags_; |
420 int write_len_; | 421 int write_len_; |
421 scoped_ptr<PartialData> partial_; // We are dealing with range requests. | 422 scoped_ptr<PartialData> partial_; // We are dealing with range requests. |
422 UploadProgress final_upload_progress_; | 423 UploadProgress final_upload_progress_; |
423 base::WeakPtrFactory<Transaction> weak_factory_; | 424 base::WeakPtrFactory<Transaction> weak_factory_; |
424 CompletionCallback io_callback_; | 425 CompletionCallback io_callback_; |
425 | 426 |
(...skipping 22 matching lines...) Expand all Loading... |
448 | 449 |
449 #if !defined(NDEBUG) | 450 #if !defined(NDEBUG) |
450 // Record of all states this transaction has moved through. | 451 // Record of all states this transaction has moved through. |
451 std::vector<int> state_path_; | 452 std::vector<int> state_path_; |
452 #endif | 453 #endif |
453 }; | 454 }; |
454 | 455 |
455 } // namespace net | 456 } // namespace net |
456 | 457 |
457 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 458 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
OLD | NEW |