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 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "net/base/host_port_pair.h" | 12 #include "net/base/host_port_pair.h" |
13 #include "net/http/http_stream_factory.h" | 13 #include "net/http/http_stream_factory.h" |
14 #include "net/base/net_log.h" | 14 #include "net/base/net_log.h" |
15 #include "net/proxy/proxy_server.h" | 15 #include "net/proxy/proxy_server.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class HttpNetworkSession; | 19 class HttpNetworkSession; |
20 class SpdySession; | 20 class SpdySession; |
21 | 21 |
22 class NET_TEST HttpStreamFactoryImpl : public HttpStreamFactory { | 22 class NET_EXPORT_PRIVATE HttpStreamFactoryImpl : public HttpStreamFactory { |
23 public: | 23 public: |
24 explicit HttpStreamFactoryImpl(HttpNetworkSession* session); | 24 explicit HttpStreamFactoryImpl(HttpNetworkSession* session); |
25 virtual ~HttpStreamFactoryImpl(); | 25 virtual ~HttpStreamFactoryImpl(); |
26 | 26 |
27 // HttpStreamFactory Interface | 27 // HttpStreamFactory Interface |
28 virtual HttpStreamRequest* RequestStream( | 28 virtual HttpStreamRequest* RequestStream( |
29 const HttpRequestInfo& info, | 29 const HttpRequestInfo& info, |
30 const SSLConfig& ssl_config, | 30 const SSLConfig& ssl_config, |
31 HttpStreamRequest::Delegate* delegate, | 31 HttpStreamRequest::Delegate* delegate, |
32 const BoundNetLog& net_log); | 32 const BoundNetLog& net_log); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be | 98 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be |
99 // deleted when the factory is destroyed. | 99 // deleted when the factory is destroyed. |
100 std::set<const Job*> preconnect_job_set_; | 100 std::set<const Job*> preconnect_job_set_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 102 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace net | 105 } // namespace net |
106 | 106 |
107 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 107 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
OLD | NEW |