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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE; | 106 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE; |
| 107 virtual int GetResponseCode() const OVERRIDE; | 107 virtual int GetResponseCode() const OVERRIDE; |
| 108 virtual Filter* SetupFilter() const OVERRIDE; | 108 virtual Filter* SetupFilter() const OVERRIDE; |
| 109 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE; | 109 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE; |
| 110 virtual bool NeedsAuth() OVERRIDE; | 110 virtual bool NeedsAuth() OVERRIDE; |
| 111 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE; | 111 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE; |
| 112 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; | 112 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; |
| 113 virtual void CancelAuth() OVERRIDE; | 113 virtual void CancelAuth() OVERRIDE; |
| 114 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; | 114 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; |
| 115 virtual void ContinueDespiteLastError() OVERRIDE; | 115 virtual void ContinueDespiteLastError() OVERRIDE; |
| 116 virtual void ResumeNetworkStart() OVERRIDE; | |
| 116 virtual bool ReadRawData(IOBuffer* buf, int buf_size, | 117 virtual bool ReadRawData(IOBuffer* buf, int buf_size, |
| 117 int* bytes_read) OVERRIDE; | 118 int* bytes_read) OVERRIDE; |
| 118 virtual void StopCaching() OVERRIDE; | 119 virtual void StopCaching() OVERRIDE; |
| 119 virtual bool GetFullRequestHeaders( | 120 virtual bool GetFullRequestHeaders( |
| 120 HttpRequestHeaders* headers) const OVERRIDE; | 121 HttpRequestHeaders* headers) const OVERRIDE; |
| 121 virtual void DoneReading() OVERRIDE; | 122 virtual void DoneReading() OVERRIDE; |
| 122 virtual HostPortPair GetSocketAddress() const OVERRIDE; | 123 virtual HostPortPair GetSocketAddress() const OVERRIDE; |
| 123 virtual void NotifyURLRequestDestroyed() OVERRIDE; | 124 virtual void NotifyURLRequestDestroyed() OVERRIDE; |
| 124 | 125 |
| 125 void RecordTimer(); | 126 void RecordTimer(); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 | 254 |
| 254 // Flag used to verify that |this| is not deleted while we are awaiting | 255 // Flag used to verify that |this| is not deleted while we are awaiting |
| 255 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. | 256 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. |
| 256 // True if we are waiting a callback and | 257 // True if we are waiting a callback and |
| 257 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 258 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
| 258 // to inform the NetworkDelegate that it may not call back. | 259 // to inform the NetworkDelegate that it may not call back. |
| 259 bool awaiting_callback_; | 260 bool awaiting_callback_; |
| 260 | 261 |
| 261 const HttpUserAgentSettings* http_user_agent_settings_; | 262 const HttpUserAgentSettings* http_user_agent_settings_; |
| 262 | 263 |
| 264 URLRequest* request_; | |
|
mmenke
2014/01/07 15:26:23
Not needed.
URLRequestJob::request_ is protected,
jkarlin
2014/01/07 16:19:32
Done.
| |
| 265 | |
| 263 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 266 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 264 }; | 267 }; |
| 265 | 268 |
| 266 } // namespace net | 269 } // namespace net |
| 267 | 270 |
| 268 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 271 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |