| 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_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
| 14 #include "net/base/net_log.h" | 14 #include "net/base/net_log.h" |
| 15 #include "net/http/http_pipelined_host_pool.h" | 15 #include "net/http/http_pipelined_host_pool.h" |
| 16 #include "net/http/http_stream_factory.h" | 16 #include "net/http/http_stream_factory.h" |
| 17 #include "net/proxy/proxy_server.h" | 17 #include "net/proxy/proxy_server.h" |
| 18 #include "net/socket/ssl_client_socket.h" | 18 #include "net/socket/ssl_client_socket.h" |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 | 21 |
| 22 class HttpNetworkSession; | 22 class HttpNetworkSession; |
| 23 class HttpPipelinedHost; | 23 class HttpPipelinedHost; |
| 24 class SpdySession; | 24 class SpdySession; |
| 25 | 25 |
| 26 class NET_EXPORT_PRIVATE HttpStreamFactoryImpl : | 26 class NET_EXPORT_PRIVATE HttpStreamFactoryImpl : |
| 27 public HttpStreamFactory, | 27 public HttpStreamFactory, |
| 28 public HttpPipelinedHostPool::Delegate { | 28 public NON_EXPORTED_BASE(HttpPipelinedHostPool::Delegate) { |
| 29 public: | 29 public: |
| 30 explicit HttpStreamFactoryImpl(HttpNetworkSession* session); | 30 explicit HttpStreamFactoryImpl(HttpNetworkSession* session); |
| 31 virtual ~HttpStreamFactoryImpl(); | 31 virtual ~HttpStreamFactoryImpl(); |
| 32 | 32 |
| 33 // HttpStreamFactory interface | 33 // HttpStreamFactory interface |
| 34 virtual HttpStreamRequest* RequestStream( | 34 virtual HttpStreamRequest* RequestStream( |
| 35 const HttpRequestInfo& info, | 35 const HttpRequestInfo& 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 HttpStreamRequest::Delegate* delegate, | 38 HttpStreamRequest::Delegate* delegate, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be | 119 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be |
| 120 // deleted when the factory is destroyed. | 120 // deleted when the factory is destroyed. |
| 121 std::set<const Job*> preconnect_job_set_; | 121 std::set<const Job*> preconnect_job_set_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 123 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace net | 126 } // namespace net |
| 127 | 127 |
| 128 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 128 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |