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 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/power_monitor/power_observer.h" | 15 #include "base/power_monitor/power_observer.h" |
16 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
17 #include "net/base/load_states.h" | 17 #include "net/base/load_states.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
19 #include "net/base/request_priority.h" | 19 #include "net/base/request_priority.h" |
20 #include "net/base/upload_progress.h" | 20 #include "net/base/upload_progress.h" |
21 #include "net/cookies/canonical_cookie.h" | 21 #include "net/cookies/canonical_cookie.h" |
22 #include "net/socket/connection_attempts.h" | |
Randy Smith (Not in Mondays)
2015/05/01 17:03:44
Replace with forward decl.
Deprecated (see juliatuttle)
2015/05/04 19:53:37
Can't, it's a typedef.
| |
22 #include "net/url_request/redirect_info.h" | 23 #include "net/url_request/redirect_info.h" |
23 #include "net/url_request/url_request.h" | 24 #include "net/url_request/url_request.h" |
24 #include "url/gurl.h" | 25 #include "url/gurl.h" |
25 | 26 |
26 namespace net { | 27 namespace net { |
27 | 28 |
28 class AuthChallengeInfo; | 29 class AuthChallengeInfo; |
29 class AuthCredentials; | 30 class AuthCredentials; |
30 class CookieOptions; | 31 class CookieOptions; |
31 class Filter; | 32 class Filter; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 // base::PowerObserver methods: | 220 // base::PowerObserver methods: |
220 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606). | 221 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606). |
221 void OnSuspend() override; | 222 void OnSuspend() override; |
222 | 223 |
223 // Called after a NetworkDelegate has been informed that the URLRequest | 224 // Called after a NetworkDelegate has been informed that the URLRequest |
224 // will be destroyed. This is used to track that no pending callbacks | 225 // will be destroyed. This is used to track that no pending callbacks |
225 // exist at destruction time of the URLRequestJob, unless they have been | 226 // exist at destruction time of the URLRequestJob, unless they have been |
226 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. | 227 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. |
227 virtual void NotifyURLRequestDestroyed(); | 228 virtual void NotifyURLRequestDestroyed(); |
228 | 229 |
230 virtual void GetConnectionAttempts(ConnectionAttempts* out) const; | |
Randy Smith (Not in Mondays)
2015/05/01 17:03:44
I think commenting of method functionality is more
Deprecated (see juliatuttle)
2015/05/04 19:53:37
Done.
| |
231 | |
229 // Given |policy|, |referrer|, and |redirect_destination|, returns the | 232 // Given |policy|, |referrer|, and |redirect_destination|, returns the |
230 // referrer URL mandated by |request|'s referrer policy. | 233 // referrer URL mandated by |request|'s referrer policy. |
231 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy, | 234 static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy, |
232 const std::string& referrer, | 235 const std::string& referrer, |
233 const GURL& redirect_destination); | 236 const GURL& redirect_destination); |
234 | 237 |
235 protected: | 238 protected: |
236 friend class base::RefCounted<URLRequestJob>; | 239 friend class base::RefCounted<URLRequestJob>; |
237 ~URLRequestJob() override; | 240 ~URLRequestJob() override; |
238 | 241 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
429 NetworkDelegate* network_delegate_; | 432 NetworkDelegate* network_delegate_; |
430 | 433 |
431 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 434 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
432 | 435 |
433 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 436 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
434 }; | 437 }; |
435 | 438 |
436 } // namespace net | 439 } // namespace net |
437 | 440 |
438 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 441 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
OLD | NEW |