| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.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/time/time.h" | 14 #include "base/time/time.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/base/net_export.h" | 17 #include "net/base/net_export.h" |
| 18 #include "net/base/sdch_manager.h" | 18 #include "net/base/sdch_manager.h" |
| 19 #include "net/cookies/cookie_store.h" | 19 #include "net/cookies/cookie_store.h" |
| 20 #include "net/filter/filter.h" | 20 #include "net/filter/filter.h" |
| 21 #include "net/http/http_request_info.h" | 21 #include "net/http/http_request_info.h" |
| 22 #include "net/socket/connection_attempts.h" |
| 22 #include "net/url_request/url_request_job.h" | 23 #include "net/url_request/url_request_job.h" |
| 23 #include "net/url_request/url_request_throttler_entry_interface.h" | 24 #include "net/url_request/url_request_throttler_entry_interface.h" |
| 24 | 25 |
| 25 namespace net { | 26 namespace net { |
| 26 | 27 |
| 27 class HttpRequestHeaders; | 28 class HttpRequestHeaders; |
| 28 class HttpResponseHeaders; | 29 class HttpResponseHeaders; |
| 29 class HttpResponseInfo; | 30 class HttpResponseInfo; |
| 30 class HttpTransaction; | 31 class HttpTransaction; |
| 31 class HttpUserAgentSettings; | 32 class HttpUserAgentSettings; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 45 URLRequestHttpJob(URLRequest* request, | 46 URLRequestHttpJob(URLRequest* request, |
| 46 NetworkDelegate* network_delegate, | 47 NetworkDelegate* network_delegate, |
| 47 const HttpUserAgentSettings* http_user_agent_settings); | 48 const HttpUserAgentSettings* http_user_agent_settings); |
| 48 | 49 |
| 49 ~URLRequestHttpJob() override; | 50 ~URLRequestHttpJob() override; |
| 50 | 51 |
| 51 // Overridden from URLRequestJob: | 52 // Overridden from URLRequestJob: |
| 52 void SetPriority(RequestPriority priority) override; | 53 void SetPriority(RequestPriority priority) override; |
| 53 void Start() override; | 54 void Start() override; |
| 54 void Kill() override; | 55 void Kill() override; |
| 56 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 55 | 57 |
| 56 RequestPriority priority() const { | 58 RequestPriority priority() const { |
| 57 return priority_; | 59 return priority_; |
| 58 } | 60 } |
| 59 | 61 |
| 60 private: | 62 private: |
| 61 enum CompletionCause { | 63 enum CompletionCause { |
| 62 ABORTED, | 64 ABORTED, |
| 63 FINISHED | 65 FINISHED |
| 64 }; | 66 }; |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 const HttpUserAgentSettings* http_user_agent_settings_; | 266 const HttpUserAgentSettings* http_user_agent_settings_; |
| 265 | 267 |
| 266 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 268 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 267 | 269 |
| 268 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 270 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 269 }; | 271 }; |
| 270 | 272 |
| 271 } // namespace net | 273 } // namespace net |
| 272 | 274 |
| 273 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 275 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |