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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
473 Mode mode_; | 473 Mode mode_; |
474 Mode original_mode_; // Used when restarting the transaction. | 474 Mode original_mode_; // Used when restarting the transaction. |
475 bool reading_; // We are already reading. Never reverts to false once set. | 475 bool reading_; // We are already reading. Never reverts to false once set. |
476 bool invalid_range_; // We may bypass the cache for this request. | 476 bool invalid_range_; // We may bypass the cache for this request. |
477 bool truncated_; // We don't have all the response data. | 477 bool truncated_; // We don't have all the response data. |
478 bool is_sparse_; // The data is stored in sparse byte ranges. | 478 bool is_sparse_; // The data is stored in sparse byte ranges. |
479 bool range_requested_; // The user requested a byte range. | 479 bool range_requested_; // The user requested a byte range. |
480 bool handling_206_; // We must deal with this 206 response. | 480 bool handling_206_; // We must deal with this 206 response. |
481 bool cache_pending_; // We are waiting for the HttpCache. | 481 bool cache_pending_; // We are waiting for the HttpCache. |
482 bool done_reading_; // All available data was read. | 482 bool done_reading_; // All available data was read. |
483 bool done_headers_; // Headers have been received from the network. | |
Randy Smith (Not in Mondays)
2017/04/04 21:54:03
Alternative design--I'm not sure this is a good id
shivanisha
2017/04/07 23:24:13
done_headers_ is used in CREATE_ENTRY_COMPLETE and
| |
483 bool vary_mismatch_; // The request doesn't match the stored vary data. | 484 bool vary_mismatch_; // The request doesn't match the stored vary data. |
484 bool couldnt_conditionalize_request_; | 485 bool couldnt_conditionalize_request_; |
485 bool bypass_lock_for_test_; // A test is exercising the cache lock. | 486 bool bypass_lock_for_test_; // A test is exercising the cache lock. |
486 bool fail_conditionalization_for_test_; // Fail ConditionalizeRequest. | 487 bool fail_conditionalization_for_test_; // Fail ConditionalizeRequest. |
487 bool validating_cannot_proceed_; | 488 bool validating_cannot_proceed_; |
488 scoped_refptr<IOBuffer> read_buf_; | 489 scoped_refptr<IOBuffer> read_buf_; |
489 int io_buf_len_; | 490 int io_buf_len_; |
490 int read_offset_; | 491 int read_offset_; |
491 int effective_load_flags_; | 492 int effective_load_flags_; |
492 int write_len_; | 493 int write_len_; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
532 bool in_do_loop_; | 533 bool in_do_loop_; |
533 | 534 |
534 base::WeakPtrFactory<Transaction> weak_factory_; | 535 base::WeakPtrFactory<Transaction> weak_factory_; |
535 | 536 |
536 DISALLOW_COPY_AND_ASSIGN(Transaction); | 537 DISALLOW_COPY_AND_ASSIGN(Transaction); |
537 }; | 538 }; |
538 | 539 |
539 } // namespace net | 540 } // namespace net |
540 | 541 |
541 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 542 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
OLD | NEW |