| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 const BoundNetLog& net_log) override; | 52 const BoundNetLog& net_log) override; |
| 53 | 53 |
| 54 HttpStreamRequest* RequestBidirectionalStreamImpl( | 54 HttpStreamRequest* RequestBidirectionalStreamImpl( |
| 55 const HttpRequestInfo& info, | 55 const HttpRequestInfo& info, |
| 56 RequestPriority priority, | 56 RequestPriority priority, |
| 57 const SSLConfig& server_ssl_config, | 57 const SSLConfig& server_ssl_config, |
| 58 const SSLConfig& proxy_ssl_config, | 58 const SSLConfig& proxy_ssl_config, |
| 59 HttpStreamRequest::Delegate* delegate, | 59 HttpStreamRequest::Delegate* delegate, |
| 60 const BoundNetLog& net_log) override; | 60 const BoundNetLog& net_log) override; |
| 61 | 61 |
| 62 void PreconnectStreams(int num_streams, | 62 void PreconnectStreams(int num_streams, const HttpRequestInfo& info) override; |
| 63 const HttpRequestInfo& info, | |
| 64 const SSLConfig& server_ssl_config, | |
| 65 const SSLConfig& proxy_ssl_config) override; | |
| 66 const HostMappingRules* GetHostMappingRules() const override; | 63 const HostMappingRules* GetHostMappingRules() const override; |
| 67 | 64 |
| 68 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } | 65 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } |
| 69 | 66 |
| 70 private: | 67 private: |
| 71 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); | 68 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); |
| 72 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, DelayMainJob); | 69 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, DelayMainJob); |
| 73 | 70 |
| 74 class NET_EXPORT_PRIVATE Request; | 71 class NET_EXPORT_PRIVATE Request; |
| 75 class NET_EXPORT_PRIVATE Job; | 72 class NET_EXPORT_PRIVATE Job; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // deleted when the factory is destroyed. | 142 // deleted when the factory is destroyed. |
| 146 std::set<const Job*> preconnect_job_set_; | 143 std::set<const Job*> preconnect_job_set_; |
| 147 | 144 |
| 148 const bool for_websockets_; | 145 const bool for_websockets_; |
| 149 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 146 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 150 }; | 147 }; |
| 151 | 148 |
| 152 } // namespace net | 149 } // namespace net |
| 153 | 150 |
| 154 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 151 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |