| 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 #include "net/http/http_cache_transaction.h" | 5 #include "net/http/http_cache_transaction.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_POSIX) | 9 #if defined(OS_POSIX) |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "base/time/time.h" | 25 #include "base/time/time.h" |
| 26 #include "net/base/completion_callback.h" | 26 #include "net/base/completion_callback.h" |
| 27 #include "net/base/io_buffer.h" | 27 #include "net/base/io_buffer.h" |
| 28 #include "net/base/load_flags.h" | 28 #include "net/base/load_flags.h" |
| 29 #include "net/base/load_timing_info.h" | 29 #include "net/base/load_timing_info.h" |
| 30 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
| 31 #include "net/base/net_log.h" | 31 #include "net/base/net_log.h" |
| 32 #include "net/base/upload_data_stream.h" | 32 #include "net/base/upload_data_stream.h" |
| 33 #include "net/cert/cert_status_flags.h" | 33 #include "net/cert/cert_status_flags.h" |
| 34 #include "net/disk_cache/disk_cache.h" | 34 #include "net/disk_cache/disk_cache.h" |
| 35 #include "net/http/disk_cache_based_quic_server_info.h" | |
| 36 #include "net/http/http_network_session.h" | 35 #include "net/http/http_network_session.h" |
| 37 #include "net/http/http_request_info.h" | 36 #include "net/http/http_request_info.h" |
| 38 #include "net/http/http_response_headers.h" | 37 #include "net/http/http_response_headers.h" |
| 39 #include "net/http/http_transaction.h" | 38 #include "net/http/http_transaction.h" |
| 40 #include "net/http/http_util.h" | 39 #include "net/http/http_util.h" |
| 41 #include "net/http/partial_data.h" | 40 #include "net/http/partial_data.h" |
| 42 #include "net/ssl/ssl_cert_request_info.h" | 41 #include "net/ssl/ssl_cert_request_info.h" |
| 43 #include "net/ssl/ssl_config_service.h" | 42 #include "net/ssl/ssl_config_service.h" |
| 44 | 43 |
| 45 using base::Time; | 44 using base::Time; |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 | 503 |
| 505 return LOAD_STATE_IDLE; | 504 return LOAD_STATE_IDLE; |
| 506 } | 505 } |
| 507 | 506 |
| 508 UploadProgress HttpCache::Transaction::GetUploadProgress() const { | 507 UploadProgress HttpCache::Transaction::GetUploadProgress() const { |
| 509 if (network_trans_.get()) | 508 if (network_trans_.get()) |
| 510 return network_trans_->GetUploadProgress(); | 509 return network_trans_->GetUploadProgress(); |
| 511 return final_upload_progress_; | 510 return final_upload_progress_; |
| 512 } | 511 } |
| 513 | 512 |
| 513 void HttpCache::Transaction::SetQuicServerInfo( |
| 514 QuicServerInfo* quic_server_info) {} |
| 515 |
| 514 bool HttpCache::Transaction::GetLoadTimingInfo( | 516 bool HttpCache::Transaction::GetLoadTimingInfo( |
| 515 LoadTimingInfo* load_timing_info) const { | 517 LoadTimingInfo* load_timing_info) const { |
| 516 if (network_trans_) | 518 if (network_trans_) |
| 517 return network_trans_->GetLoadTimingInfo(load_timing_info); | 519 return network_trans_->GetLoadTimingInfo(load_timing_info); |
| 518 | 520 |
| 519 if (old_network_trans_load_timing_) { | 521 if (old_network_trans_load_timing_) { |
| 520 *load_timing_info = *old_network_trans_load_timing_; | 522 *load_timing_info = *old_network_trans_load_timing_; |
| 521 return true; | 523 return true; |
| 522 } | 524 } |
| 523 | 525 |
| (...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2515 default: | 2517 default: |
| 2516 NOTREACHED(); | 2518 NOTREACHED(); |
| 2517 } | 2519 } |
| 2518 } | 2520 } |
| 2519 | 2521 |
| 2520 void HttpCache::Transaction::OnIOComplete(int result) { | 2522 void HttpCache::Transaction::OnIOComplete(int result) { |
| 2521 DoLoop(result); | 2523 DoLoop(result); |
| 2522 } | 2524 } |
| 2523 | 2525 |
| 2524 } // namespace net | 2526 } // namespace net |
| OLD | NEW |