| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // An HttpStreamRequestImpl exists for each stream which is in progress of being | 29 // An HttpStreamRequestImpl exists for each stream which is in progress of being |
| 30 // created for the StreamFactory. | 30 // created for the StreamFactory. |
| 31 class HttpStreamFactoryImpl::Job { | 31 class HttpStreamFactoryImpl::Job { |
| 32 public: | 32 public: |
| 33 Job(HttpStreamFactoryImpl* stream_factory, | 33 Job(HttpStreamFactoryImpl* stream_factory, |
| 34 HttpNetworkSession* session, | 34 HttpNetworkSession* session, |
| 35 const HttpRequestInfo& request_info, | 35 const HttpRequestInfo& request_info, |
| 36 const SSLConfig& server_ssl_config, | 36 const SSLConfig& server_ssl_config, |
| 37 const SSLConfig& proxy_ssl_config, | 37 const SSLConfig& proxy_ssl_config, |
| 38 const BoundNetLog& net_log); | 38 NetLog* net_log); |
| 39 ~Job(); | 39 ~Job(); |
| 40 | 40 |
| 41 // Start initiates the process of creating a new HttpStream. |request| will be | 41 // Start initiates the process of creating a new HttpStream. |request| will be |
| 42 // notified upon completion if the Job has not been Orphan()'d. | 42 // notified upon completion if the Job has not been Orphan()'d. |
| 43 void Start(Request* request); | 43 void Start(Request* request); |
| 44 | 44 |
| 45 // Preconnect will attempt to request |num_streams| sockets from the | 45 // Preconnect will attempt to request |num_streams| sockets from the |
| 46 // appropriate ClientSocketPool. | 46 // appropriate ClientSocketPool. |
| 47 int Preconnect(int num_streams); | 47 int Preconnect(int num_streams); |
| 48 | 48 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 bool existing_available_pipeline_; | 284 bool existing_available_pipeline_; |
| 285 | 285 |
| 286 base::WeakPtrFactory<Job> ptr_factory_; | 286 base::WeakPtrFactory<Job> ptr_factory_; |
| 287 | 287 |
| 288 DISALLOW_COPY_AND_ASSIGN(Job); | 288 DISALLOW_COPY_AND_ASSIGN(Job); |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 } // namespace net | 291 } // namespace net |
| 292 | 292 |
| 293 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 293 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |