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_PIPELINED_HOST_FORCED_H_ | 5 #ifndef NET_HTTP_HTTP_PIPELINED_HOST_FORCED_H_ |
6 #define NET_HTTP_HTTP_PIPELINED_HOST_FORCED_H_ | 6 #define NET_HTTP_HTTP_PIPELINED_HOST_FORCED_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class ClientSocketHandle; | 25 class ClientSocketHandle; |
26 class HttpPipelinedStream; | 26 class HttpPipelinedStream; |
27 class ProxyInfo; | 27 class ProxyInfo; |
28 struct SSLConfig; | 28 struct SSLConfig; |
29 | 29 |
30 // Manages a single pipelined connection for requests to a host that are forced | 30 // Manages a single pipelined connection for requests to a host that are forced |
31 // to use pipelining. Note that this is normally not used. It is intended to | 31 // to use pipelining. Note that this is normally not used. It is intended to |
32 // test the user's connection for pipelining compatibility. | 32 // test the user's connection for pipelining compatibility. |
33 class NET_EXPORT_PRIVATE HttpPipelinedHostForced | 33 class NET_EXPORT_PRIVATE HttpPipelinedHostForced |
34 : public HttpPipelinedHost, | 34 : public HttpPipelinedHost, |
35 public HttpPipelinedConnection::Delegate { | 35 public NON_EXPORTED_BASE(HttpPipelinedConnection::Delegate) { |
36 public: | 36 public: |
37 HttpPipelinedHostForced(HttpPipelinedHost::Delegate* delegate, | 37 HttpPipelinedHostForced(HttpPipelinedHost::Delegate* delegate, |
38 const Key& key, | 38 const Key& key, |
39 HttpPipelinedConnection::Factory* factory); | 39 HttpPipelinedConnection::Factory* factory); |
40 virtual ~HttpPipelinedHostForced(); | 40 virtual ~HttpPipelinedHostForced(); |
41 | 41 |
42 // HttpPipelinedHost interface | 42 // HttpPipelinedHost interface |
43 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( | 43 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( |
44 ClientSocketHandle* connection, | 44 ClientSocketHandle* connection, |
45 const SSLConfig& used_ssl_config, | 45 const SSLConfig& used_ssl_config, |
(...skipping 28 matching lines...) Expand all Loading... |
74 const Key key_; | 74 const Key key_; |
75 scoped_ptr<HttpPipelinedConnection> pipeline_; | 75 scoped_ptr<HttpPipelinedConnection> pipeline_; |
76 scoped_ptr<HttpPipelinedConnection::Factory> factory_; | 76 scoped_ptr<HttpPipelinedConnection::Factory> factory_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostForced); | 78 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostForced); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace net | 81 } // namespace net |
82 | 82 |
83 #endif // NET_HTTP_HTTP_PIPELINED_HOST_FORCED_H_ | 83 #endif // NET_HTTP_HTTP_PIPELINED_HOST_FORCED_H_ |
OLD | NEW |