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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/power_monitor/power_observer.h" | 17 #include "base/power_monitor/power_observer.h" |
18 #include "net/base/host_port_pair.h" | 18 #include "net/base/host_port_pair.h" |
19 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
20 #include "net/base/net_export.h" | 20 #include "net/base/net_export.h" |
21 #include "net/base/request_priority.h" | 21 #include "net/base/request_priority.h" |
22 #include "net/base/upload_progress.h" | 22 #include "net/base/upload_progress.h" |
23 #include "net/cookies/canonical_cookie.h" | 23 #include "net/cookies/canonical_cookie.h" |
24 #include "net/socket/connection_attempts.h" | 24 #include "net/socket/connection_attempts.h" |
25 #include "net/ssl/ssl_private_key.h" | |
davidben
2015/09/25 20:10:12
Nit: forward decl
svaldez
2015/09/28 16:54:54
Done.
| |
25 #include "net/url_request/redirect_info.h" | 26 #include "net/url_request/redirect_info.h" |
26 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
27 #include "url/gurl.h" | 28 #include "url/gurl.h" |
28 | 29 |
29 namespace net { | 30 namespace net { |
30 | 31 |
31 class AuthChallengeInfo; | 32 class AuthChallengeInfo; |
32 class AuthCredentials; | 33 class AuthCredentials; |
33 class CookieOptions; | 34 class CookieOptions; |
34 class Filter; | 35 class Filter; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 // Fills the authentication info with the server's response. | 187 // Fills the authentication info with the server's response. |
187 virtual void GetAuthChallengeInfo( | 188 virtual void GetAuthChallengeInfo( |
188 scoped_refptr<AuthChallengeInfo>* auth_info); | 189 scoped_refptr<AuthChallengeInfo>* auth_info); |
189 | 190 |
190 // Resend the request with authentication credentials. | 191 // Resend the request with authentication credentials. |
191 virtual void SetAuth(const AuthCredentials& credentials); | 192 virtual void SetAuth(const AuthCredentials& credentials); |
192 | 193 |
193 // Display the error page without asking for credentials again. | 194 // Display the error page without asking for credentials again. |
194 virtual void CancelAuth(); | 195 virtual void CancelAuth(); |
195 | 196 |
196 virtual void ContinueWithCertificate(X509Certificate* client_cert); | 197 virtual void ContinueWithCertificate(X509Certificate* client_cert, |
198 SSLPrivateKey* client_pkey); | |
197 | 199 |
198 // Continue processing the request ignoring the last error. | 200 // Continue processing the request ignoring the last error. |
199 virtual void ContinueDespiteLastError(); | 201 virtual void ContinueDespiteLastError(); |
200 | 202 |
201 // Continue with the network request. | 203 // Continue with the network request. |
202 virtual void ResumeNetworkStart(); | 204 virtual void ResumeNetworkStart(); |
203 | 205 |
204 void FollowDeferredRedirect(); | 206 void FollowDeferredRedirect(); |
205 | 207 |
206 // Returns true if the Job is done producing response data and has called | 208 // Returns true if the Job is done producing response data and has called |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
453 int64_t last_notified_total_received_bytes_; | 455 int64_t last_notified_total_received_bytes_; |
454 | 456 |
455 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 457 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
456 | 458 |
457 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 459 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
458 }; | 460 }; |
459 | 461 |
460 } // namespace net | 462 } // namespace net |
461 | 463 |
462 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 464 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
OLD | NEW |