| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual bool GetContentEncodings( | 74 virtual bool GetContentEncodings( |
| 75 std::vector<Filter::FilterType>* encoding_type); | 75 std::vector<Filter::FilterType>* encoding_type); |
| 76 virtual bool IsCachedContent() const; | 76 virtual bool IsCachedContent() const; |
| 77 virtual bool IsSdchResponse() const; | 77 virtual bool IsSdchResponse() const; |
| 78 virtual bool IsSafeRedirect(const GURL& location); | 78 virtual bool IsSafeRedirect(const GURL& location); |
| 79 virtual bool NeedsAuth(); | 79 virtual bool NeedsAuth(); |
| 80 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*); | 80 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*); |
| 81 virtual void SetAuth(const string16& username, | 81 virtual void SetAuth(const string16& username, |
| 82 const string16& password); | 82 const string16& password); |
| 83 virtual void CancelAuth(); | 83 virtual void CancelAuth(); |
| 84 virtual void CancelTLSLogin(); |
| 84 virtual void ContinueWithCertificate(X509Certificate* client_cert); | 85 virtual void ContinueWithCertificate(X509Certificate* client_cert); |
| 86 virtual void ContinueWithTLSLogin(); |
| 85 virtual void ContinueDespiteLastError(); | 87 virtual void ContinueDespiteLastError(); |
| 86 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read); | 88 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read); |
| 87 virtual void StopCaching(); | 89 virtual void StopCaching(); |
| 88 | 90 |
| 89 // Keep a reference to the url request context to be sure it's not deleted | 91 // Keep a reference to the url request context to be sure it's not deleted |
| 90 // before us. | 92 // before us. |
| 91 scoped_refptr<URLRequestContext> context_; | 93 scoped_refptr<URLRequestContext> context_; |
| 92 | 94 |
| 93 HttpRequestInfo request_info_; | 95 HttpRequestInfo request_info_; |
| 94 const HttpResponseInfo* response_info_; | 96 const HttpResponseInfo* response_info_; |
| 95 | 97 |
| 96 std::vector<std::string> response_cookies_; | 98 std::vector<std::string> response_cookies_; |
| 97 size_t response_cookies_save_index_; | 99 size_t response_cookies_save_index_; |
| 98 | 100 |
| 99 // Auth states for proxy and origin server. | 101 // Auth states for proxy and origin server. |
| 100 AuthState proxy_auth_state_; | 102 AuthState proxy_auth_state_; |
| 101 AuthState server_auth_state_; | 103 AuthState server_auth_state_; |
| 102 | 104 |
| 105 AuthData* tls_login_auth_data_; |
| 106 |
| 103 string16 username_; | 107 string16 username_; |
| 104 string16 password_; | 108 string16 password_; |
| 105 | 109 |
| 106 CompletionCallbackImpl<URLRequestHttpJob> can_get_cookies_callback_; | 110 CompletionCallbackImpl<URLRequestHttpJob> can_get_cookies_callback_; |
| 107 CompletionCallbackImpl<URLRequestHttpJob> can_set_cookie_callback_; | 111 CompletionCallbackImpl<URLRequestHttpJob> can_set_cookie_callback_; |
| 108 CompletionCallbackImpl<URLRequestHttpJob> start_callback_; | 112 CompletionCallbackImpl<URLRequestHttpJob> start_callback_; |
| 109 CompletionCallbackImpl<URLRequestHttpJob> read_callback_; | 113 CompletionCallbackImpl<URLRequestHttpJob> read_callback_; |
| 110 | 114 |
| 111 bool read_in_progress_; | 115 bool read_in_progress_; |
| 112 | 116 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 137 virtual ~URLRequestHttpJob(); | 141 virtual ~URLRequestHttpJob(); |
| 138 | 142 |
| 139 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; | 143 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; |
| 140 | 144 |
| 141 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 145 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 142 }; | 146 }; |
| 143 | 147 |
| 144 } // namespace net | 148 } // namespace net |
| 145 | 149 |
| 146 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 150 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |