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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // deleted when the factory is destroyed. | 136 // deleted when the factory is destroyed. |
129 std::set<const Job*> preconnect_job_set_; | 137 std::set<const Job*> preconnect_job_set_; |
130 | 138 |
131 const bool for_websockets_; | 139 const bool for_websockets_; |
132 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 140 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
133 }; | 141 }; |
134 | 142 |
135 } // namespace net | 143 } // namespace net |
136 | 144 |
137 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 145 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
OLD | NEW |