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 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 // Display the error page without asking for credentials again. | 187 // Display the error page without asking for credentials again. |
188 virtual void CancelAuth(); | 188 virtual void CancelAuth(); |
189 | 189 |
190 virtual void ContinueWithCertificate(X509Certificate* client_cert, | 190 virtual void ContinueWithCertificate(X509Certificate* client_cert, |
191 SSLPrivateKey* client_private_key); | 191 SSLPrivateKey* client_private_key); |
192 | 192 |
193 // Continue processing the request ignoring the last error. | 193 // Continue processing the request ignoring the last error. |
194 virtual void ContinueDespiteLastError(); | 194 virtual void ContinueDespiteLastError(); |
195 | 195 |
196 // Continue with the network request. | |
197 virtual void ResumeNetworkStart(); | |
198 | |
199 void FollowDeferredRedirect(); | 196 void FollowDeferredRedirect(); |
200 | 197 |
201 // Returns true if the Job is done producing response data and has called | 198 // Returns true if the Job is done producing response data and has called |
202 // NotifyDone on the request. | 199 // NotifyDone on the request. |
203 bool is_done() const { return done_; } | 200 bool is_done() const { return done_; } |
204 | 201 |
205 // Get/Set expected content size | 202 // Get/Set expected content size |
206 int64_t expected_content_size() const { return expected_content_size_; } | 203 int64_t expected_content_size() const { return expected_content_size_; } |
207 void set_expected_content_size(const int64_t& size) { | 204 void set_expected_content_size(const int64_t& size) { |
208 expected_content_size_ = size; | 205 expected_content_size_ = size; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 int64_t last_notified_total_sent_bytes_; | 452 int64_t last_notified_total_sent_bytes_; |
456 | 453 |
457 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 454 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
458 | 455 |
459 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 456 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
460 }; | 457 }; |
461 | 458 |
462 } // namespace net | 459 } // namespace net |
463 | 460 |
464 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 461 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
OLD | NEW |