| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 // Returns true if we should bother attempting to resume this request if it | 348 // Returns true if we should bother attempting to resume this request if it |
| 349 // is aborted while in progress. If |has_data| is true, the size of the stored | 349 // is aborted while in progress. If |has_data| is true, the size of the stored |
| 350 // data is considered for the result. | 350 // data is considered for the result. |
| 351 bool CanResume(bool has_data); | 351 bool CanResume(bool has_data); |
| 352 | 352 |
| 353 // Called to signal completion of asynchronous IO. | 353 // Called to signal completion of asynchronous IO. |
| 354 void OnIOComplete(int result); | 354 void OnIOComplete(int result); |
| 355 | 355 |
| 356 void ReportCacheActionStart(); | 356 void ReportCacheActionStart(); |
| 357 void ReportCacheActionFinish(); | 357 void ReportCacheActionFinish(); |
| 358 void ReportNetworkActionStart(); |
| 359 void ReportNetworkActionFinish(); |
| 358 void UpdateTransactionPattern(TransactionPattern new_transaction_pattern); | 360 void UpdateTransactionPattern(TransactionPattern new_transaction_pattern); |
| 359 void RecordHistograms(); | 361 void RecordHistograms(); |
| 360 | 362 |
| 361 State next_state_; | 363 State next_state_; |
| 362 const HttpRequestInfo* request_; | 364 const HttpRequestInfo* request_; |
| 363 BoundNetLog net_log_; | 365 BoundNetLog net_log_; |
| 364 scoped_ptr<HttpRequestInfo> custom_request_; | 366 scoped_ptr<HttpRequestInfo> custom_request_; |
| 365 HttpRequestHeaders request_headers_copy_; | 367 HttpRequestHeaders request_headers_copy_; |
| 366 // If extra_headers specified a "if-modified-since" or "if-none-match", | 368 // If extra_headers specified a "if-modified-since" or "if-none-match", |
| 367 // |external_validation_| contains the value of those headers. | 369 // |external_validation_| contains the value of those headers. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 base::TimeTicks entry_lock_waiting_since_; | 404 base::TimeTicks entry_lock_waiting_since_; |
| 403 base::TimeTicks first_cache_access_since_; | 405 base::TimeTicks first_cache_access_since_; |
| 404 base::TimeTicks send_request_since_; | 406 base::TimeTicks send_request_since_; |
| 405 | 407 |
| 406 HttpTransactionDelegate* transaction_delegate_; | 408 HttpTransactionDelegate* transaction_delegate_; |
| 407 }; | 409 }; |
| 408 | 410 |
| 409 } // namespace net | 411 } // namespace net |
| 410 | 412 |
| 411 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 413 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |