| 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_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual int RestartTunnelWithProxyAuth( | 140 virtual int RestartTunnelWithProxyAuth( |
| 141 const AuthCredentials& credentials) = 0; | 141 const AuthCredentials& credentials) = 0; |
| 142 | 142 |
| 143 // Returns the LoadState for the request. | 143 // Returns the LoadState for the request. |
| 144 virtual LoadState GetLoadState() const = 0; | 144 virtual LoadState GetLoadState() const = 0; |
| 145 | 145 |
| 146 // Returns true if TLS/NPN was negotiated for this stream. | 146 // Returns true if TLS/NPN was negotiated for this stream. |
| 147 virtual bool was_npn_negotiated() const = 0; | 147 virtual bool was_npn_negotiated() const = 0; |
| 148 | 148 |
| 149 // Protocol negotiated with the server. | 149 // Protocol negotiated with the server. |
| 150 virtual SSLClientSocket::NextProto protocol_negotiated() const = 0; | 150 virtual NextProto protocol_negotiated() const = 0; |
| 151 | 151 |
| 152 // Returns true if this stream is being fetched over SPDY. | 152 // Returns true if this stream is being fetched over SPDY. |
| 153 virtual bool using_spdy() const = 0; | 153 virtual bool using_spdy() const = 0; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 // The HttpStreamFactory defines an interface for creating usable HttpStreams. | 156 // The HttpStreamFactory defines an interface for creating usable HttpStreams. |
| 157 class NET_EXPORT HttpStreamFactory { | 157 class NET_EXPORT HttpStreamFactory { |
| 158 public: | 158 public: |
| 159 virtual ~HttpStreamFactory(); | 159 virtual ~HttpStreamFactory(); |
| 160 | 160 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 static bool http_pipelining_enabled_; | 292 static bool http_pipelining_enabled_; |
| 293 static uint16 testing_fixed_http_port_; | 293 static uint16 testing_fixed_http_port_; |
| 294 static uint16 testing_fixed_https_port_; | 294 static uint16 testing_fixed_https_port_; |
| 295 | 295 |
| 296 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 296 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 297 }; | 297 }; |
| 298 | 298 |
| 299 } // namespace net | 299 } // namespace net |
| 300 | 300 |
| 301 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 301 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |