| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // will be destroyed. This is used to track that no pending callbacks | 222 // will be destroyed. This is used to track that no pending callbacks |
| 223 // exist at destruction time of the URLRequestJob, unless they have been | 223 // exist at destruction time of the URLRequestJob, unless they have been |
| 224 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. | 224 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. |
| 225 virtual void NotifyURLRequestDestroyed(); | 225 virtual void NotifyURLRequestDestroyed(); |
| 226 | 226 |
| 227 // Populates |out| with the connection attempts made at the socket layer in | 227 // Populates |out| with the connection attempts made at the socket layer in |
| 228 // the course of executing the URLRequestJob. Should be called after the job | 228 // the course of executing the URLRequestJob. Should be called after the job |
| 229 // has failed or the response headers have been received. | 229 // has failed or the response headers have been received. |
| 230 virtual void GetConnectionAttempts(ConnectionAttempts* out) const; | 230 virtual void GetConnectionAttempts(ConnectionAttempts* out) const; |
| 231 | 231 |
| 232 // Called by URLRequest to dump memory allocation stats. |dump| is the memory |
| 233 // allocator dump of the parent in the memory dump hierarchy. |
| 234 virtual void DumpMemoryStats( |
| 235 base::trace_event::MemoryAllocatorDump* dump) const; |
| 236 |
| 232 // Given |policy|, |referrer|, and |redirect_destination|, returns the | 237 // Given |policy|, |referrer|, and |redirect_destination|, returns the |
| 233 // referrer URL mandated by |request|'s referrer policy. | 238 // referrer URL mandated by |request|'s referrer policy. |
| 234 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy, | 239 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy, |
| 235 const GURL& original_referrer, | 240 const GURL& original_referrer, |
| 236 const GURL& redirect_destination); | 241 const GURL& redirect_destination); |
| 237 | 242 |
| 238 protected: | 243 protected: |
| 239 // Notifies the job that a certificate is requested. | 244 // Notifies the job that a certificate is requested. |
| 240 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); | 245 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); |
| 241 | 246 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 CompletionCallback read_raw_callback_; | 440 CompletionCallback read_raw_callback_; |
| 436 | 441 |
| 437 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 442 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
| 438 | 443 |
| 439 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 444 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 440 }; | 445 }; |
| 441 | 446 |
| 442 } // namespace net | 447 } // namespace net |
| 443 | 448 |
| 444 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 449 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |