| 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 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // resume the HttpStream creation process. | 173 // resume the HttpStream creation process. |
| 174 virtual int RestartTunnelWithProxyAuth( | 174 virtual int RestartTunnelWithProxyAuth( |
| 175 const AuthCredentials& credentials) = 0; | 175 const AuthCredentials& credentials) = 0; |
| 176 | 176 |
| 177 // Called when the priority of the parent transaction changes. | 177 // Called when the priority of the parent transaction changes. |
| 178 virtual void SetPriority(RequestPriority priority) = 0; | 178 virtual void SetPriority(RequestPriority priority) = 0; |
| 179 | 179 |
| 180 // Returns the LoadState for the request. | 180 // Returns the LoadState for the request. |
| 181 virtual LoadState GetLoadState() const = 0; | 181 virtual LoadState GetLoadState() const = 0; |
| 182 | 182 |
| 183 // Returns true if TLS/NPN was negotiated for this stream. | 183 // Returns true if TLS/ALPN was negotiated for this stream. |
| 184 virtual bool was_npn_negotiated() const = 0; | 184 virtual bool was_alpn_negotiated() const = 0; |
| 185 | 185 |
| 186 // Protocol negotiated with the server. | 186 // Protocol negotiated with the server. |
| 187 virtual NextProto negotiated_protocol() const = 0; | 187 virtual NextProto negotiated_protocol() const = 0; |
| 188 | 188 |
| 189 // Returns true if this stream is being fetched over SPDY. | 189 // Returns true if this stream is being fetched over SPDY. |
| 190 virtual bool using_spdy() const = 0; | 190 virtual bool using_spdy() const = 0; |
| 191 | 191 |
| 192 // Returns socket-layer connection attempts made for this stream request. | 192 // Returns socket-layer connection attempts made for this stream request. |
| 193 virtual const ConnectionAttempts& connection_attempts() const = 0; | 193 virtual const ConnectionAttempts& connection_attempts() const = 0; |
| 194 }; | 194 }; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 248 |
| 249 private: | 249 private: |
| 250 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server); | 250 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server); |
| 251 | 251 |
| 252 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 252 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 } // namespace net | 255 } // namespace net |
| 256 | 256 |
| 257 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 257 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |