| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "net/cookies/canonical_cookie.h" | 21 #include "net/cookies/canonical_cookie.h" |
| 22 #include "net/url_request/redirect_info.h" | 22 #include "net/url_request/redirect_info.h" |
| 23 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
| 24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 | 27 |
| 28 class AuthChallengeInfo; | 28 class AuthChallengeInfo; |
| 29 class AuthCredentials; | 29 class AuthCredentials; |
| 30 class CookieOptions; | 30 class CookieOptions; |
| 31 class CookieStore; | |
| 32 class Filter; | 31 class Filter; |
| 33 class HttpRequestHeaders; | 32 class HttpRequestHeaders; |
| 34 class HttpResponseInfo; | 33 class HttpResponseInfo; |
| 35 class IOBuffer; | 34 class IOBuffer; |
| 36 struct LoadTimingInfo; | 35 struct LoadTimingInfo; |
| 37 class NetworkDelegate; | 36 class NetworkDelegate; |
| 38 class SSLCertRequestInfo; | 37 class SSLCertRequestInfo; |
| 39 class SSLInfo; | 38 class SSLInfo; |
| 40 class UploadDataStream; | 39 class UploadDataStream; |
| 41 class URLRequestStatus; | 40 class URLRequestStatus; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // Delegates to URLRequest::Delegate. | 245 // Delegates to URLRequest::Delegate. |
| 247 bool CanGetCookies(const CookieList& cookie_list) const; | 246 bool CanGetCookies(const CookieList& cookie_list) const; |
| 248 | 247 |
| 249 // Delegates to URLRequest::Delegate. | 248 // Delegates to URLRequest::Delegate. |
| 250 bool CanSetCookie(const std::string& cookie_line, | 249 bool CanSetCookie(const std::string& cookie_line, |
| 251 CookieOptions* options) const; | 250 CookieOptions* options) const; |
| 252 | 251 |
| 253 // Delegates to URLRequest::Delegate. | 252 // Delegates to URLRequest::Delegate. |
| 254 bool CanEnablePrivacyMode() const; | 253 bool CanEnablePrivacyMode() const; |
| 255 | 254 |
| 256 // Returns the cookie store to be used for the request. | |
| 257 CookieStore* GetCookieStore() const; | |
| 258 | |
| 259 // Notifies the job that the network is about to be used. | 255 // Notifies the job that the network is about to be used. |
| 260 void NotifyBeforeNetworkStart(bool* defer); | 256 void NotifyBeforeNetworkStart(bool* defer); |
| 261 | 257 |
| 262 // Notifies the job that headers have been received. | 258 // Notifies the job that headers have been received. |
| 263 void NotifyHeadersComplete(); | 259 void NotifyHeadersComplete(); |
| 264 | 260 |
| 265 // Notifies the request that the job has completed a Read operation. | 261 // Notifies the request that the job has completed a Read operation. |
| 266 void NotifyReadComplete(int bytes_read); | 262 void NotifyReadComplete(int bytes_read); |
| 267 | 263 |
| 268 // Notifies the request that a start error has occurred. | 264 // Notifies the request that a start error has occurred. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 NetworkDelegate* network_delegate_; | 432 NetworkDelegate* network_delegate_; |
| 437 | 433 |
| 438 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 434 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
| 439 | 435 |
| 440 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 436 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 441 }; | 437 }; |
| 442 | 438 |
| 443 } // namespace net | 439 } // namespace net |
| 444 | 440 |
| 445 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 441 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |