| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void AddExtraHeaders(); | 46 void AddExtraHeaders(); |
| 47 void AddCookieHeaderAndStart(); | 47 void AddCookieHeaderAndStart(); |
| 48 void SaveCookiesAndNotifyHeadersComplete(); | 48 void SaveCookiesAndNotifyHeadersComplete(); |
| 49 void SaveNextCookie(); | 49 void SaveNextCookie(); |
| 50 void FetchResponseCookies(const HttpResponseInfo* response_info, | 50 void FetchResponseCookies(const HttpResponseInfo* response_info, |
| 51 std::vector<std::string>* cookies); | 51 std::vector<std::string>* cookies); |
| 52 | 52 |
| 53 // Process the Strict-Transport-Security header, if one exists. | 53 // Process the Strict-Transport-Security header, if one exists. |
| 54 void ProcessStrictTransportSecurityHeader(); | 54 void ProcessStrictTransportSecurityHeader(); |
| 55 | 55 |
| 56 void OnCanGetCookiesCompleted(int result); | 56 void OnCanGetCookiesCompleted(bool allow); |
| 57 void OnCanSetCookieCompleted(int result); | 57 void OnCanSetCookieCompleted(); |
| 58 void OnStartCompleted(int result); | 58 void OnStartCompleted(int result); |
| 59 void OnReadCompleted(int result); | 59 void OnReadCompleted(int result); |
| 60 | 60 |
| 61 bool ShouldTreatAsCertificateError(int result); | 61 bool ShouldTreatAsCertificateError(int result); |
| 62 | 62 |
| 63 void RestartTransactionWithAuth(const string16& username, | 63 void RestartTransactionWithAuth(const string16& username, |
| 64 const string16& password); | 64 const string16& password); |
| 65 | 65 |
| 66 // Overridden from URLRequestJob: | 66 // Overridden from URLRequestJob: |
| 67 virtual void SetUpload(UploadData* upload); | 67 virtual void SetUpload(UploadData* upload); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 scoped_ptr<HttpFilterContext> filter_context_; | 183 scoped_ptr<HttpFilterContext> filter_context_; |
| 184 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; | 184 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 186 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 } // namespace net | 189 } // namespace net |
| 190 | 190 |
| 191 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 191 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |