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> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "base/task.h" | 15 #include "base/task.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "net/base/filter.h" | 18 #include "net/base/filter.h" |
19 #include "net/base/host_port_pair.h" | 19 #include "net/base/host_port_pair.h" |
20 #include "net/base/load_states.h" | 20 #include "net/base/load_states.h" |
| 21 #include "net/base/net_api.h" |
21 | 22 |
22 namespace net { | 23 namespace net { |
23 | 24 |
24 class AuthChallengeInfo; | 25 class AuthChallengeInfo; |
25 class HttpRequestHeaders; | 26 class HttpRequestHeaders; |
26 class HttpResponseInfo; | 27 class HttpResponseInfo; |
27 class IOBuffer; | 28 class IOBuffer; |
28 class URLRequest; | 29 class URLRequest; |
29 class UploadData; | 30 class UploadData; |
30 class URLRequestStatus; | 31 class URLRequestStatus; |
31 class X509Certificate; | 32 class X509Certificate; |
32 | 33 |
33 class URLRequestJob : public base::RefCounted<URLRequestJob> { | 34 class NET_API URLRequestJob : public base::RefCounted<URLRequestJob> { |
34 public: | 35 public: |
35 explicit URLRequestJob(URLRequest* request); | 36 explicit URLRequestJob(URLRequest* request); |
36 | 37 |
37 // Returns the request that owns this job. THIS POINTER MAY BE NULL if the | 38 // Returns the request that owns this job. THIS POINTER MAY BE NULL if the |
38 // request was destroyed. | 39 // request was destroyed. |
39 URLRequest* request() const { | 40 URLRequest* request() const { |
40 return request_; | 41 return request_; |
41 } | 42 } |
42 | 43 |
43 // Sets the upload data, most requests have no upload data, so this is a NOP. | 44 // Sets the upload data, most requests have no upload data, so this is a NOP. |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 int deferred_redirect_status_code_; | 336 int deferred_redirect_status_code_; |
336 | 337 |
337 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; | 338 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; |
338 | 339 |
339 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 340 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
340 }; | 341 }; |
341 | 342 |
342 } // namespace net | 343 } // namespace net |
343 | 344 |
344 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 345 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
OLD | NEW |