| 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_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual void NotifyURLRequestDestroyed(); | 196 virtual void NotifyURLRequestDestroyed(); |
| 197 | 197 |
| 198 protected: | 198 protected: |
| 199 friend class base::RefCounted<URLRequestJob>; | 199 friend class base::RefCounted<URLRequestJob>; |
| 200 virtual ~URLRequestJob(); | 200 virtual ~URLRequestJob(); |
| 201 | 201 |
| 202 // Notifies the job that a certificate is requested. | 202 // Notifies the job that a certificate is requested. |
| 203 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); | 203 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); |
| 204 | 204 |
| 205 // Notifies the job about an SSL certificate error. | 205 // Notifies the job about an SSL certificate error. |
| 206 void NotifySSLCertificateError(const SSLInfo& ssl_info, | 206 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal); |
| 207 bool is_hsts_host); | |
| 208 | 207 |
| 209 // Delegates to URLRequest::Delegate. | 208 // Delegates to URLRequest::Delegate. |
| 210 bool CanGetCookies(const CookieList& cookie_list) const; | 209 bool CanGetCookies(const CookieList& cookie_list) const; |
| 211 | 210 |
| 212 // Delegates to URLRequest::Delegate. | 211 // Delegates to URLRequest::Delegate. |
| 213 bool CanSetCookie(const std::string& cookie_line, | 212 bool CanSetCookie(const std::string& cookie_line, |
| 214 CookieOptions* options) const; | 213 CookieOptions* options) const; |
| 215 | 214 |
| 216 // Notifies the job that headers have been received. | 215 // Notifies the job that headers have been received. |
| 217 void NotifyHeadersComplete(); | 216 void NotifyHeadersComplete(); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 int deferred_redirect_status_code_; | 373 int deferred_redirect_status_code_; |
| 375 | 374 |
| 376 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 375 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
| 377 | 376 |
| 378 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 377 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 379 }; | 378 }; |
| 380 | 379 |
| 381 } // namespace net | 380 } // namespace net |
| 382 | 381 |
| 383 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 382 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |