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/url_request/url_request_http_job.h" | 5 #include "net/url_request/url_request_http_job.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 *request_, | 100 *request_, |
101 NetworkDelegate::CACHE_WAIT_STATE_START); | 101 NetworkDelegate::CACHE_WAIT_STATE_START); |
102 } | 102 } |
103 virtual void OnCacheActionFinish() OVERRIDE { | 103 virtual void OnCacheActionFinish() OVERRIDE { |
104 if (request_ == NULL || network_delegate_ == NULL) | 104 if (request_ == NULL || network_delegate_ == NULL) |
105 return; | 105 return; |
106 network_delegate_->NotifyCacheWaitStateChange( | 106 network_delegate_->NotifyCacheWaitStateChange( |
107 *request_, | 107 *request_, |
108 NetworkDelegate::CACHE_WAIT_STATE_FINISH); | 108 NetworkDelegate::CACHE_WAIT_STATE_FINISH); |
109 } | 109 } |
| 110 virtual void OnRequestBodyInitialized(uint64 size) OVERRIDE { |
| 111 request_->NotifyRequestBodyInitialized(size); |
| 112 } |
110 private: | 113 private: |
111 URLRequest* request_; | 114 URLRequest* request_; |
112 NetworkDelegate* network_delegate_; | 115 NetworkDelegate* network_delegate_; |
113 }; | 116 }; |
114 | 117 |
115 URLRequestHttpJob::HttpFilterContext::HttpFilterContext(URLRequestHttpJob* job) | 118 URLRequestHttpJob::HttpFilterContext::HttpFilterContext(URLRequestHttpJob* job) |
116 : job_(job) { | 119 : job_(job) { |
117 DCHECK(job_); | 120 DCHECK(job_); |
118 } | 121 } |
119 | 122 |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 | 1477 |
1475 void URLRequestHttpJob::NotifyURLRequestDestroyed() { | 1478 void URLRequestHttpJob::NotifyURLRequestDestroyed() { |
1476 awaiting_callback_ = false; | 1479 awaiting_callback_ = false; |
1477 } | 1480 } |
1478 | 1481 |
1479 void URLRequestHttpJob::OnDetachRequest() { | 1482 void URLRequestHttpJob::OnDetachRequest() { |
1480 http_transaction_delegate_->OnDetachRequest(); | 1483 http_transaction_delegate_->OnDetachRequest(); |
1481 } | 1484 } |
1482 | 1485 |
1483 } // namespace net | 1486 } // namespace net |
OLD | NEW |