| 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/system_monitor/system_monitor.h" | 15 #include "base/system_monitor/system_monitor.h" |
| 16 #include "base/task.h" | 16 #include "base/task.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "net/base/filter.h" | 19 #include "net/base/filter.h" |
| 20 #include "net/base/host_port_pair.h" | 20 #include "net/base/host_port_pair.h" |
| 21 #include "net/base/load_states.h" | 21 #include "net/base/load_states.h" |
| 22 #include "net/base/net_api.h" | 22 #include "net/base/net_export.h" |
| 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 URLRequest; | 33 class URLRequest; |
| 34 class UploadData; | 34 class UploadData; |
| 35 class URLRequestStatus; | 35 class URLRequestStatus; |
| 36 class X509Certificate; | 36 class X509Certificate; |
| 37 | 37 |
| 38 class NET_API URLRequestJob : public base::RefCounted<URLRequestJob>, | 38 class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>, |
| 39 public base::SystemMonitor::PowerObserver { | 39 public base::SystemMonitor::PowerObserver { |
| 40 public: | 40 public: |
| 41 explicit URLRequestJob(URLRequest* request); | 41 explicit URLRequestJob(URLRequest* request); |
| 42 | 42 |
| 43 // Returns the request that owns this job. THIS POINTER MAY BE NULL if the | 43 // Returns the request that owns this job. THIS POINTER MAY BE NULL if the |
| 44 // request was destroyed. | 44 // request was destroyed. |
| 45 URLRequest* request() const { | 45 URLRequest* request() const { |
| 46 return request_; | 46 return request_; |
| 47 } | 47 } |
| 48 | 48 |
| 49 // Sets the upload data, most requests have no upload data, so this is a NOP. | 49 // Sets the upload data, most requests have no upload data, so this is a NOP. |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 int deferred_redirect_status_code_; | 358 int deferred_redirect_status_code_; |
| 359 | 359 |
| 360 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; | 360 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; |
| 361 | 361 |
| 362 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 362 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 363 }; | 363 }; |
| 364 | 364 |
| 365 } // namespace net | 365 } // namespace net |
| 366 | 366 |
| 367 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 367 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |