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