Chromium Code Reviews| 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_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 virtual void CancelAuth() OVERRIDE; | 86 virtual void CancelAuth() OVERRIDE; |
| 87 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; | 87 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; |
| 88 virtual void ContinueDespiteLastError() OVERRIDE; | 88 virtual void ContinueDespiteLastError() OVERRIDE; |
| 89 virtual bool ReadRawData(IOBuffer* buf, int buf_size, | 89 virtual bool ReadRawData(IOBuffer* buf, int buf_size, |
| 90 int* bytes_read) OVERRIDE; | 90 int* bytes_read) OVERRIDE; |
| 91 virtual void StopCaching() OVERRIDE; | 91 virtual void StopCaching() OVERRIDE; |
| 92 virtual void DoneReading() OVERRIDE; | 92 virtual void DoneReading() OVERRIDE; |
| 93 virtual HostPortPair GetSocketAddress() const OVERRIDE; | 93 virtual HostPortPair GetSocketAddress() const OVERRIDE; |
| 94 virtual void NotifyURLRequestDestroyed() OVERRIDE; | 94 virtual void NotifyURLRequestDestroyed() OVERRIDE; |
| 95 | 95 |
| 96 // Keep a reference to the url request context to be sure it's not deleted | |
| 97 // before us. | |
| 98 scoped_refptr<const URLRequestContext> context_; | |
|
eroman
2012/05/04 04:27:02
*fingers crossed*
willchan no longer on Chromium
2012/05/04 21:47:41
I'm optimistic :)
| |
| 99 | |
| 100 HttpRequestInfo request_info_; | 96 HttpRequestInfo request_info_; |
| 101 const HttpResponseInfo* response_info_; | 97 const HttpResponseInfo* response_info_; |
| 102 | 98 |
| 103 std::vector<std::string> response_cookies_; | 99 std::vector<std::string> response_cookies_; |
| 104 size_t response_cookies_save_index_; | 100 size_t response_cookies_save_index_; |
| 105 | 101 |
| 106 // Auth states for proxy and origin server. | 102 // Auth states for proxy and origin server. |
| 107 AuthState proxy_auth_state_; | 103 AuthState proxy_auth_state_; |
| 108 AuthState server_auth_state_; | 104 AuthState server_auth_state_; |
| 109 AuthCredentials auth_credentials_; | 105 AuthCredentials auth_credentials_; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 227 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
| 232 // to inform the NetworkDelegate that it may not call back. | 228 // to inform the NetworkDelegate that it may not call back. |
| 233 bool awaiting_callback_; | 229 bool awaiting_callback_; |
| 234 | 230 |
| 235 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 231 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 236 }; | 232 }; |
| 237 | 233 |
| 238 } // namespace net | 234 } // namespace net |
| 239 | 235 |
| 240 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 236 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |