| 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> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "base/task.h" | 14 #include "base/task.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "net/base/auth.h" | 16 #include "net/base/auth.h" |
| 17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
| 18 #include "net/base/cookie_store.h" |
| 18 #include "net/http/http_request_info.h" | 19 #include "net/http/http_request_info.h" |
| 19 #include "net/url_request/url_request_job.h" | 20 #include "net/url_request/url_request_job.h" |
| 20 #include "net/url_request/url_request_throttler_entry_interface.h" | 21 #include "net/url_request/url_request_throttler_entry_interface.h" |
| 21 | 22 |
| 22 namespace net { | 23 namespace net { |
| 23 | 24 |
| 24 class HttpResponseInfo; | 25 class HttpResponseInfo; |
| 25 class HttpTransaction; | 26 class HttpTransaction; |
| 26 class URLRequestContext; | 27 class URLRequestContext; |
| 27 | 28 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 void AddExtraHeaders(); | 47 void AddExtraHeaders(); |
| 47 void AddCookieHeaderAndStart(); | 48 void AddCookieHeaderAndStart(); |
| 48 void SaveCookiesAndNotifyHeadersComplete(); | 49 void SaveCookiesAndNotifyHeadersComplete(); |
| 49 void SaveNextCookie(); | 50 void SaveNextCookie(); |
| 50 void FetchResponseCookies(const HttpResponseInfo* response_info, | 51 void FetchResponseCookies(const HttpResponseInfo* response_info, |
| 51 std::vector<std::string>* cookies); | 52 std::vector<std::string>* cookies); |
| 52 | 53 |
| 53 // Process the Strict-Transport-Security header, if one exists. | 54 // Process the Strict-Transport-Security header, if one exists. |
| 54 void ProcessStrictTransportSecurityHeader(); | 55 void ProcessStrictTransportSecurityHeader(); |
| 55 | 56 |
| 57 void AddAuthorizationHeader( |
| 58 const std::vector<CookieStore::CookieInfo>& cookie_infos); |
| 59 |
| 56 void OnCanGetCookiesCompleted(bool allow); | 60 void OnCanGetCookiesCompleted(bool allow); |
| 57 void OnCanSetCookieCompleted(); | 61 void OnCanSetCookieCompleted(); |
| 58 void OnStartCompleted(int result); | 62 void OnStartCompleted(int result); |
| 59 void OnReadCompleted(int result); | 63 void OnReadCompleted(int result); |
| 60 | 64 |
| 61 bool ShouldTreatAsCertificateError(int result); | 65 bool ShouldTreatAsCertificateError(int result); |
| 62 | 66 |
| 63 void RestartTransactionWithAuth(const string16& username, | 67 void RestartTransactionWithAuth(const string16& username, |
| 64 const string16& password); | 68 const string16& password); |
| 65 | 69 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 186 |
| 183 scoped_ptr<HttpFilterContext> filter_context_; | 187 scoped_ptr<HttpFilterContext> filter_context_; |
| 184 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; | 188 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; |
| 185 | 189 |
| 186 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 190 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 187 }; | 191 }; |
| 188 | 192 |
| 189 } // namespace net | 193 } // namespace net |
| 190 | 194 |
| 191 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 195 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |