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 20 matching lines...) Expand all Loading... |
31 HttpStreamFactoryImpl(HttpNetworkSession* session, bool for_websockets); | 31 HttpStreamFactoryImpl(HttpNetworkSession* session, bool for_websockets); |
32 virtual ~HttpStreamFactoryImpl(); | 32 virtual ~HttpStreamFactoryImpl(); |
33 | 33 |
34 // HttpStreamFactory interface | 34 // HttpStreamFactory interface |
35 virtual HttpStreamRequest* RequestStream( | 35 virtual HttpStreamRequest* RequestStream( |
36 const HttpRequestInfo& info, | 36 const HttpRequestInfo& info, |
37 RequestPriority priority, | 37 RequestPriority priority, |
38 const SSLConfig& server_ssl_config, | 38 const SSLConfig& server_ssl_config, |
39 const SSLConfig& proxy_ssl_config, | 39 const SSLConfig& proxy_ssl_config, |
40 HttpStreamRequest::Delegate* delegate, | 40 HttpStreamRequest::Delegate* delegate, |
41 const BoundNetLog& net_log) OVERRIDE; | 41 const BoundNetLog& net_log) override; |
42 | 42 |
43 virtual HttpStreamRequest* RequestWebSocketHandshakeStream( | 43 virtual HttpStreamRequest* RequestWebSocketHandshakeStream( |
44 const HttpRequestInfo& info, | 44 const HttpRequestInfo& info, |
45 RequestPriority priority, | 45 RequestPriority priority, |
46 const SSLConfig& server_ssl_config, | 46 const SSLConfig& server_ssl_config, |
47 const SSLConfig& proxy_ssl_config, | 47 const SSLConfig& proxy_ssl_config, |
48 HttpStreamRequest::Delegate* delegate, | 48 HttpStreamRequest::Delegate* delegate, |
49 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 49 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
50 const BoundNetLog& net_log) OVERRIDE; | 50 const BoundNetLog& net_log) override; |
51 | 51 |
52 virtual void PreconnectStreams(int num_streams, | 52 virtual void PreconnectStreams(int num_streams, |
53 const HttpRequestInfo& info, | 53 const HttpRequestInfo& info, |
54 RequestPriority priority, | 54 RequestPriority priority, |
55 const SSLConfig& server_ssl_config, | 55 const SSLConfig& server_ssl_config, |
56 const SSLConfig& proxy_ssl_config) OVERRIDE; | 56 const SSLConfig& proxy_ssl_config) override; |
57 virtual const HostMappingRules* GetHostMappingRules() const OVERRIDE; | 57 virtual const HostMappingRules* GetHostMappingRules() const override; |
58 | 58 |
59 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } | 59 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } |
60 | 60 |
61 private: | 61 private: |
62 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); | 62 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); |
63 | 63 |
64 class NET_EXPORT_PRIVATE Request; | 64 class NET_EXPORT_PRIVATE Request; |
65 class NET_EXPORT_PRIVATE Job; | 65 class NET_EXPORT_PRIVATE Job; |
66 | 66 |
67 typedef std::set<Request*> RequestSet; | 67 typedef std::set<Request*> RequestSet; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // deleted when the factory is destroyed. | 130 // deleted when the factory is destroyed. |
131 std::set<const Job*> preconnect_job_set_; | 131 std::set<const Job*> preconnect_job_set_; |
132 | 132 |
133 const bool for_websockets_; | 133 const bool for_websockets_; |
134 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 134 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace net | 137 } // namespace net |
138 | 138 |
139 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 139 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
OLD | NEW |