| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 explicit HttpStreamFactoryImpl(HttpNetworkSession* session); | 26 explicit HttpStreamFactoryImpl(HttpNetworkSession* session); |
| 27 virtual ~HttpStreamFactoryImpl(); | 27 virtual ~HttpStreamFactoryImpl(); |
| 28 | 28 |
| 29 // HttpStreamFactory Interface | 29 // HttpStreamFactory Interface |
| 30 virtual HttpStreamRequest* RequestStream( | 30 virtual HttpStreamRequest* RequestStream( |
| 31 const HttpRequestInfo& info, | 31 const HttpRequestInfo& info, |
| 32 const SSLConfig& server_ssl_config, | 32 const SSLConfig& server_ssl_config, |
| 33 const SSLConfig& proxy_ssl_config, | 33 const SSLConfig& proxy_ssl_config, |
| 34 HttpStreamRequest::Delegate* delegate, | 34 HttpStreamRequest::Delegate* delegate, |
| 35 const BoundNetLog& net_log); | 35 const BoundNetLog& net_log) OVERRIDE; |
| 36 | 36 |
| 37 virtual void PreconnectStreams(int num_streams, | 37 virtual void PreconnectStreams(int num_streams, |
| 38 const HttpRequestInfo& info, | 38 const HttpRequestInfo& info, |
| 39 const SSLConfig& server_ssl_config, | 39 const SSLConfig& server_ssl_config, |
| 40 const SSLConfig& proxy_ssl_config, | 40 const SSLConfig& proxy_ssl_config, |
| 41 const BoundNetLog& net_log); | 41 const BoundNetLog& net_log) OVERRIDE; |
| 42 virtual void AddTLSIntolerantServer(const HostPortPair& server); | 42 virtual void AddTLSIntolerantServer(const HostPortPair& server) OVERRIDE; |
| 43 virtual bool IsTLSIntolerantServer(const HostPortPair& server) const; | 43 virtual bool IsTLSIntolerantServer(const HostPortPair& server) const OVERRIDE; |
| 44 | 44 |
| 45 // Called when a HttpPipelinedHost has new capacity. Attempts to allocate any | 45 // Called when a HttpPipelinedHost has new capacity. Attempts to allocate any |
| 46 // pending pipeline-capable requests to pipelines. | 46 // pending pipeline-capable requests to pipelines. |
| 47 virtual void OnHttpPipelinedHostHasAdditionalCapacity( | 47 virtual void OnHttpPipelinedHostHasAdditionalCapacity( |
| 48 const HostPortPair& origin); | 48 const HostPortPair& origin); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 class Request; | 51 class Request; |
| 52 class Job; | 52 class Job; |
| 53 | 53 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be | 111 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be |
| 112 // deleted when the factory is destroyed. | 112 // deleted when the factory is destroyed. |
| 113 std::set<const Job*> preconnect_job_set_; | 113 std::set<const Job*> preconnect_job_set_; |
| 114 | 114 |
| 115 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 115 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace net | 118 } // namespace net |
| 119 | 119 |
| 120 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 120 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |