| 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_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // created for the StreamFactory. | 37 // created for the StreamFactory. |
| 38 class HttpStreamFactoryImpl::Job { | 38 class HttpStreamFactoryImpl::Job { |
| 39 public: | 39 public: |
| 40 // Constructor for non-alternative Job. | 40 // Constructor for non-alternative Job. |
| 41 Job(HttpStreamFactoryImpl* stream_factory, | 41 Job(HttpStreamFactoryImpl* stream_factory, |
| 42 HttpNetworkSession* session, | 42 HttpNetworkSession* session, |
| 43 const HttpRequestInfo& request_info, | 43 const HttpRequestInfo& request_info, |
| 44 RequestPriority priority, | 44 RequestPriority priority, |
| 45 const SSLConfig& server_ssl_config, | 45 const SSLConfig& server_ssl_config, |
| 46 const SSLConfig& proxy_ssl_config, | 46 const SSLConfig& proxy_ssl_config, |
| 47 HostPortPair server, |
| 48 GURL origin_url, |
| 47 NetLog* net_log); | 49 NetLog* net_log); |
| 48 // Constructor for alternative Job. | 50 // Constructor for alternative Job. |
| 49 Job(HttpStreamFactoryImpl* stream_factory, | 51 Job(HttpStreamFactoryImpl* stream_factory, |
| 50 HttpNetworkSession* session, | 52 HttpNetworkSession* session, |
| 51 const HttpRequestInfo& request_info, | 53 const HttpRequestInfo& request_info, |
| 52 RequestPriority priority, | 54 RequestPriority priority, |
| 53 const SSLConfig& server_ssl_config, | 55 const SSLConfig& server_ssl_config, |
| 54 const SSLConfig& proxy_ssl_config, | 56 const SSLConfig& proxy_ssl_config, |
| 57 HostPortPair server, |
| 58 GURL origin_url, |
| 55 AlternativeService alternative_service, | 59 AlternativeService alternative_service, |
| 56 NetLog* net_log); | 60 NetLog* net_log); |
| 57 ~Job(); | 61 ~Job(); |
| 58 | 62 |
| 59 // Start initiates the process of creating a new HttpStream. |request| will be | 63 // Start initiates the process of creating a new HttpStream. |request| will be |
| 60 // notified upon completion if the Job has not been Orphan()'d. | 64 // notified upon completion if the Job has not been Orphan()'d. |
| 61 void Start(Request* request); | 65 void Start(Request* request); |
| 62 | 66 |
| 63 // Preconnect will attempt to request |num_streams| sockets from the | 67 // Preconnect will attempt to request |num_streams| sockets from the |
| 64 // appropriate ClientSocketPool. | 68 // appropriate ClientSocketPool. |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 JobStatus other_job_status_; | 398 JobStatus other_job_status_; |
| 395 | 399 |
| 396 base::WeakPtrFactory<Job> ptr_factory_; | 400 base::WeakPtrFactory<Job> ptr_factory_; |
| 397 | 401 |
| 398 DISALLOW_COPY_AND_ASSIGN(Job); | 402 DISALLOW_COPY_AND_ASSIGN(Job); |
| 399 }; | 403 }; |
| 400 | 404 |
| 401 } // namespace net | 405 } // namespace net |
| 402 | 406 |
| 403 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 407 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |