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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual LoadState GetLoadState() const OVERRIDE; | 100 virtual LoadState GetLoadState() const OVERRIDE; |
101 virtual UploadProgress GetUploadProgress() const OVERRIDE; | 101 virtual UploadProgress GetUploadProgress() const OVERRIDE; |
102 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; | 102 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; |
103 virtual bool GetCharset(std::string* charset) OVERRIDE; | 103 virtual bool GetCharset(std::string* charset) OVERRIDE; |
104 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE; | 104 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE; |
105 virtual void GetLoadTimingInfo( | 105 virtual void GetLoadTimingInfo( |
106 LoadTimingInfo* load_timing_info) const OVERRIDE; | 106 LoadTimingInfo* load_timing_info) const OVERRIDE; |
107 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE; | 107 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE; |
108 virtual int GetResponseCode() const OVERRIDE; | 108 virtual int GetResponseCode() const OVERRIDE; |
109 virtual Filter* SetupFilter() const OVERRIDE; | 109 virtual Filter* SetupFilter() const OVERRIDE; |
| 110 virtual bool IsRedirectResponse( |
| 111 GURL* location, int* http_status_code) OVERRIDE; |
110 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE; | 112 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE; |
111 virtual bool NeedsAuth() OVERRIDE; | 113 virtual bool NeedsAuth() OVERRIDE; |
112 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE; | 114 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE; |
113 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; | 115 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; |
114 virtual void CancelAuth() OVERRIDE; | 116 virtual void CancelAuth() OVERRIDE; |
115 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; | 117 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; |
116 virtual void ContinueDespiteLastError() OVERRIDE; | 118 virtual void ContinueDespiteLastError() OVERRIDE; |
117 virtual void ResumeNetworkStart() OVERRIDE; | 119 virtual void ResumeNetworkStart() OVERRIDE; |
118 virtual bool ReadRawData(IOBuffer* buf, int buf_size, | 120 virtual bool ReadRawData(IOBuffer* buf, int buf_size, |
119 int* bytes_read) OVERRIDE; | 121 int* bytes_read) OVERRIDE; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 bool awaiting_callback_; | 269 bool awaiting_callback_; |
268 | 270 |
269 const HttpUserAgentSettings* http_user_agent_settings_; | 271 const HttpUserAgentSettings* http_user_agent_settings_; |
270 | 272 |
271 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 273 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
272 }; | 274 }; |
273 | 275 |
274 } // namespace net | 276 } // namespace net |
275 | 277 |
276 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 278 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |