| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 | 25 |
| 26 class AuthChallengeInfo; | 26 class AuthChallengeInfo; |
| 27 class CookieList; | 27 class CookieList; |
| 28 class CookieOptions; | 28 class CookieOptions; |
| 29 class HttpRequestHeaders; | 29 class HttpRequestHeaders; |
| 30 class HttpResponseInfo; | 30 class HttpResponseInfo; |
| 31 class IOBuffer; | 31 class IOBuffer; |
| 32 class SSLCertRequestInfo; | 32 class SSLCertRequestInfo; |
| 33 class SSLInfo; |
| 33 class URLRequest; | 34 class URLRequest; |
| 34 class UploadData; | 35 class UploadData; |
| 35 class URLRequestStatus; | 36 class URLRequestStatus; |
| 36 class X509Certificate; | 37 class X509Certificate; |
| 37 | 38 |
| 38 class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>, | 39 class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>, |
| 39 public base::SystemMonitor::PowerObserver { | 40 public base::SystemMonitor::PowerObserver { |
| 40 public: | 41 public: |
| 41 explicit URLRequestJob(URLRequest* request); | 42 explicit URLRequestJob(URLRequest* request); |
| 42 | 43 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 virtual void OnSuspend(); | 191 virtual void OnSuspend(); |
| 191 | 192 |
| 192 protected: | 193 protected: |
| 193 friend class base::RefCounted<URLRequestJob>; | 194 friend class base::RefCounted<URLRequestJob>; |
| 194 virtual ~URLRequestJob(); | 195 virtual ~URLRequestJob(); |
| 195 | 196 |
| 196 // Notifies the job that a certificate is requested. | 197 // Notifies the job that a certificate is requested. |
| 197 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); | 198 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); |
| 198 | 199 |
| 199 // Notifies the job about an SSL certificate error. | 200 // Notifies the job about an SSL certificate error. |
| 200 void NotifySSLCertificateError(int cert_error, X509Certificate* cert); | 201 void NotifySSLCertificateError(int cert_error, |
| 202 const SSLInfo& ssl_info, |
| 203 bool must_be_fatal); |
| 201 | 204 |
| 202 // Delegates to URLRequest::Delegate. | 205 // Delegates to URLRequest::Delegate. |
| 203 bool CanGetCookies(const CookieList& cookie_list) const; | 206 bool CanGetCookies(const CookieList& cookie_list) const; |
| 204 | 207 |
| 205 // Delegates to URLRequest::Delegate. | 208 // Delegates to URLRequest::Delegate. |
| 206 bool CanSetCookie(const std::string& cookie_line, | 209 bool CanSetCookie(const std::string& cookie_line, |
| 207 CookieOptions* options) const; | 210 CookieOptions* options) const; |
| 208 | 211 |
| 209 // Notifies the job that headers have been received. | 212 // Notifies the job that headers have been received. |
| 210 void NotifyHeadersComplete(); | 213 void NotifyHeadersComplete(); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 int deferred_redirect_status_code_; | 370 int deferred_redirect_status_code_; |
| 368 | 371 |
| 369 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; | 372 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; |
| 370 | 373 |
| 371 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 374 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 372 }; | 375 }; |
| 373 | 376 |
| 374 } // namespace net | 377 } // namespace net |
| 375 | 378 |
| 376 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 379 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |