| 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> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 HttpStreamRequest* RequestWebSocketHandshakeStream( | 42 HttpStreamRequest* RequestWebSocketHandshakeStream( |
| 43 const HttpRequestInfo& info, | 43 const HttpRequestInfo& 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 HttpStreamRequest::Delegate* delegate, | 47 HttpStreamRequest::Delegate* delegate, |
| 48 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 48 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
| 49 const BoundNetLog& net_log) override; | 49 const BoundNetLog& net_log) override; |
| 50 | 50 |
| 51 HttpStreamRequest* RequestBidirectionalStreamJob( |
| 52 const HttpRequestInfo& info, |
| 53 RequestPriority priority, |
| 54 const SSLConfig& server_ssl_config, |
| 55 const SSLConfig& proxy_ssl_config, |
| 56 HttpStreamRequest::Delegate* delegate, |
| 57 const BoundNetLog& net_log) override; |
| 58 |
| 51 void PreconnectStreams(int num_streams, | 59 void PreconnectStreams(int num_streams, |
| 52 const HttpRequestInfo& info, | 60 const HttpRequestInfo& info, |
| 53 const SSLConfig& server_ssl_config, | 61 const SSLConfig& server_ssl_config, |
| 54 const SSLConfig& proxy_ssl_config) override; | 62 const SSLConfig& proxy_ssl_config) override; |
| 55 const HostMappingRules* GetHostMappingRules() const override; | 63 const HostMappingRules* GetHostMappingRules() const override; |
| 56 | 64 |
| 57 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } | 65 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } |
| 58 | 66 |
| 59 private: | 67 private: |
| 60 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); | 68 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // deleted when the factory is destroyed. | 134 // deleted when the factory is destroyed. |
| 127 std::set<const Job*> preconnect_job_set_; | 135 std::set<const Job*> preconnect_job_set_; |
| 128 | 136 |
| 129 const bool for_websockets_; | 137 const bool for_websockets_; |
| 130 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 138 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 131 }; | 139 }; |
| 132 | 140 |
| 133 } // namespace net | 141 } // namespace net |
| 134 | 142 |
| 135 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 143 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |