| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void FetchResponseCookies(const HttpResponseInfo* response_info, | 52 void FetchResponseCookies(const HttpResponseInfo* response_info, |
| 53 std::vector<std::string>* cookies); | 53 std::vector<std::string>* cookies); |
| 54 | 54 |
| 55 // Process the Strict-Transport-Security header, if one exists. | 55 // Process the Strict-Transport-Security header, if one exists. |
| 56 void ProcessStrictTransportSecurityHeader(); | 56 void ProcessStrictTransportSecurityHeader(); |
| 57 | 57 |
| 58 void OnStartCompleted(int result); | 58 void OnStartCompleted(int result); |
| 59 void OnReadCompleted(int result); | 59 void OnReadCompleted(int result); |
| 60 void NotifyBeforeSendHeadersCallback(int result); | 60 void NotifyBeforeSendHeadersCallback(int result); |
| 61 | 61 |
| 62 bool ShouldTreatAsCertificateError(int result); | |
| 63 | |
| 64 void RestartTransactionWithAuth(const string16& username, | 62 void RestartTransactionWithAuth(const string16& username, |
| 65 const string16& password); | 63 const string16& password); |
| 66 | 64 |
| 67 // Overridden from URLRequestJob: | 65 // Overridden from URLRequestJob: |
| 68 virtual void SetUpload(UploadData* upload) OVERRIDE; | 66 virtual void SetUpload(UploadData* upload) OVERRIDE; |
| 69 virtual void SetExtraRequestHeaders( | 67 virtual void SetExtraRequestHeaders( |
| 70 const HttpRequestHeaders& headers) OVERRIDE; | 68 const HttpRequestHeaders& headers) OVERRIDE; |
| 71 virtual void Start() OVERRIDE; | 69 virtual void Start() OVERRIDE; |
| 72 virtual void Kill() OVERRIDE; | 70 virtual void Kill() OVERRIDE; |
| 73 virtual LoadState GetLoadState() const OVERRIDE; | 71 virtual LoadState GetLoadState() const OVERRIDE; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 scoped_ptr<HttpFilterContext> filter_context_; | 213 scoped_ptr<HttpFilterContext> filter_context_; |
| 216 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; | 214 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; |
| 217 base::WeakPtrFactory<URLRequestHttpJob> weak_ptr_factory_; | 215 base::WeakPtrFactory<URLRequestHttpJob> weak_ptr_factory_; |
| 218 | 216 |
| 219 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 217 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 220 }; | 218 }; |
| 221 | 219 |
| 222 } // namespace net | 220 } // namespace net |
| 223 | 221 |
| 224 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 222 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |