| 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_H_ |    5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ | 
|    6 #define NET_URL_REQUEST_URL_REQUEST_H_ |    6 #define NET_URL_REQUEST_URL_REQUEST_H_ | 
|    7  |    7  | 
|    8 #include <stdint.h> |    8 #include <stdint.h> | 
|    9  |    9  | 
|   10 #include <memory> |   10 #include <memory> | 
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  695   void BeforeRequestComplete(int error); |  695   void BeforeRequestComplete(int error); | 
|  696  |  696  | 
|  697   // TODO(mmenke):  Make this take a scoped_ptr. |  697   // TODO(mmenke):  Make this take a scoped_ptr. | 
|  698   void StartJob(URLRequestJob* job); |  698   void StartJob(URLRequestJob* job); | 
|  699  |  699  | 
|  700   // Restarting involves replacing the current job with a new one such as what |  700   // Restarting involves replacing the current job with a new one such as what | 
|  701   // happens when following a HTTP redirect. |  701   // happens when following a HTTP redirect. | 
|  702   void RestartWithJob(URLRequestJob* job); |  702   void RestartWithJob(URLRequestJob* job); | 
|  703   void PrepareToRestart(); |  703   void PrepareToRestart(); | 
|  704  |  704  | 
|  705   // Detaches the job from this request in preparation for this object going |  | 
|  706   // away or the job being replaced. The job will not call us back when it has |  | 
|  707   // been orphaned. |  | 
|  708   void OrphanJob(); |  | 
|  709  |  | 
|  710   // Cancels the request and set the error and ssl info for this request to the |  705   // Cancels the request and set the error and ssl info for this request to the | 
|  711   // passed values. Returns the error that was set. |  706   // passed values. Returns the error that was set. | 
|  712   int DoCancel(int error, const SSLInfo& ssl_info); |  707   int DoCancel(int error, const SSLInfo& ssl_info); | 
|  713  |  708  | 
|  714   // Called by the URLRequestJob when the headers are received, before any other |  709   // Called by the URLRequestJob when the headers are received, before any other | 
|  715   // method, to allow caching of load timing information. |  710   // method, to allow caching of load timing information. | 
|  716   void OnHeadersComplete(); |  711   void OnHeadersComplete(); | 
|  717  |  712  | 
|  718   // Notifies the network delegate that the request has been completed. |  713   // Notifies the network delegate that the request has been completed. | 
|  719   // This does not imply a successful completion. Also a canceled request is |  714   // This does not imply a successful completion. Also a canceled request is | 
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  856  |  851  | 
|  857   // The raw header size of the response. |  852   // The raw header size of the response. | 
|  858   int raw_header_size_; |  853   int raw_header_size_; | 
|  859  |  854  | 
|  860   DISALLOW_COPY_AND_ASSIGN(URLRequest); |  855   DISALLOW_COPY_AND_ASSIGN(URLRequest); | 
|  861 }; |  856 }; | 
|  862  |  857  | 
|  863 }  // namespace net |  858 }  // namespace net | 
|  864  |  859  | 
|  865 #endif  // NET_URL_REQUEST_URL_REQUEST_H_ |  860 #endif  // NET_URL_REQUEST_URL_REQUEST_H_ | 
| OLD | NEW |