| 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_H_ | 5 #ifndef NET_HTTP_HTTP_PIPELINED_HOST_H_ |
| 6 #define NET_HTTP_HTTP_PIPELINED_HOST_H_ | 6 #define NET_HTTP_HTTP_PIPELINED_HOST_H_ |
| 7 | 7 |
| 8 #include "net/base/host_port_pair.h" | 8 #include "net/base/host_port_pair.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 #include "net/http/http_pipelined_connection.h" | 10 #include "net/http/http_pipelined_connection.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 HttpPipelinedHost* host, | 56 HttpPipelinedHost* host, |
| 57 HttpPipelinedHostCapability capability) = 0; | 57 HttpPipelinedHostCapability capability) = 0; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 class Factory { | 60 class Factory { |
| 61 public: | 61 public: |
| 62 virtual ~Factory() {} | 62 virtual ~Factory() {} |
| 63 | 63 |
| 64 // Returns a new HttpPipelinedHost. | 64 // Returns a new HttpPipelinedHost. |
| 65 virtual HttpPipelinedHost* CreateNewHost( | 65 virtual HttpPipelinedHost* CreateNewHost( |
| 66 Delegate* delegate, const Key& key, | 66 Delegate* delegate, |
| 67 const Key& key, |
| 67 HttpPipelinedConnection::Factory* factory, | 68 HttpPipelinedConnection::Factory* factory, |
| 68 HttpPipelinedHostCapability capability, | 69 HttpPipelinedHostCapability capability, |
| 69 bool force_pipelining) = 0; | 70 bool force_pipelining) = 0; |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 virtual ~HttpPipelinedHost() {} | 73 virtual ~HttpPipelinedHost() {} |
| 73 | 74 |
| 74 // Constructs a new pipeline on |connection| and returns a new | 75 // Constructs a new pipeline on |connection| and returns a new |
| 75 // HttpPipelinedStream that uses it. | 76 // HttpPipelinedStream that uses it. |
| 76 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( | 77 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( |
| (...skipping 16 matching lines...) Expand all Loading... |
| 93 virtual const Key& GetKey() const = 0; | 94 virtual const Key& GetKey() const = 0; |
| 94 | 95 |
| 95 // Creates a Value summary of this host's pipelines. Caller assumes | 96 // Creates a Value summary of this host's pipelines. Caller assumes |
| 96 // ownership of the returned Value. | 97 // ownership of the returned Value. |
| 97 virtual base::Value* PipelineInfoToValue() const = 0; | 98 virtual base::Value* PipelineInfoToValue() const = 0; |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace net | 101 } // namespace net |
| 101 | 102 |
| 102 #endif // NET_HTTP_HTTP_PIPELINED_HOST_H_ | 103 #endif // NET_HTTP_HTTP_PIPELINED_HOST_H_ |
| OLD | NEW |