| OLD | NEW |
| 1 // Copyright (c) 2010 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_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_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/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "base/task.h" | 14 #include "base/task.h" |
| 15 #include "net/base/auth.h" | 15 #include "net/base/auth.h" |
| 16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
| 17 #include "net/http/http_request_info.h" | 17 #include "net/http/http_request_info.h" |
| 18 #include "net/url_request/url_request_job.h" | 18 #include "net/url_request/url_request_job.h" |
| 19 #include "net/url_request/url_request_throttler_entry_interface.h" | 19 #include "net/url_request/url_request_throttler_entry_interface.h" |
| 20 | 20 |
| 21 class URLRequestContext; | |
| 22 | |
| 23 namespace net { | 21 namespace net { |
| 24 | 22 |
| 25 class HttpResponseInfo; | 23 class HttpResponseInfo; |
| 26 class HttpTransaction; | 24 class HttpTransaction; |
| 25 class URLRequestContext; |
| 27 | 26 |
| 28 // A net::URLRequestJob subclass that is built on top of HttpTransaction. It | 27 // A net::URLRequestJob subclass that is built on top of HttpTransaction. It |
| 29 // provides an implementation for both HTTP and HTTPS. | 28 // provides an implementation for both HTTP and HTTPS. |
| 30 class URLRequestHttpJob : public URLRequestJob { | 29 class URLRequestHttpJob : public URLRequestJob { |
| 31 public: | 30 public: |
| 32 static URLRequestJob* Factory(URLRequest* request, | 31 static URLRequestJob* Factory(URLRequest* request, |
| 33 const std::string& scheme); | 32 const std::string& scheme); |
| 34 | 33 |
| 35 protected: | 34 protected: |
| 36 explicit URLRequestHttpJob(URLRequest* request); | 35 explicit URLRequestHttpJob(URLRequest* request); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 virtual ~URLRequestHttpJob(); | 137 virtual ~URLRequestHttpJob(); |
| 139 | 138 |
| 140 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; | 139 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; |
| 141 | 140 |
| 142 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 141 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 143 }; | 142 }; |
| 144 | 143 |
| 145 } // namespace net | 144 } // namespace net |
| 146 | 145 |
| 147 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 146 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |