| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 // The HttpStreamFactory defines an interface for creating usable HttpStreams. | 198 // The HttpStreamFactory defines an interface for creating usable HttpStreams. |
| 199 class NET_EXPORT HttpStreamFactory { | 199 class NET_EXPORT HttpStreamFactory { |
| 200 public: | 200 public: |
| 201 virtual ~HttpStreamFactory(); | 201 virtual ~HttpStreamFactory(); |
| 202 | 202 |
| 203 void ProcessAlternativeService( | 203 void ProcessAlternativeService( |
| 204 const base::WeakPtr<HttpServerProperties>& http_server_properties, | 204 const base::WeakPtr<HttpServerProperties>& http_server_properties, |
| 205 base::StringPiece alternative_service_str, | 205 base::StringPiece alternative_service_str, |
| 206 const HostPortPair& http_host_port_pair, | 206 const SchemeOriginPair& scheme_origin_pair, |
| 207 const HttpNetworkSession& session); | 207 const HttpNetworkSession& session); |
| 208 | 208 |
| 209 void ProcessAlternateProtocol( | 209 void ProcessAlternateProtocol( |
| 210 const base::WeakPtr<HttpServerProperties>& http_server_properties, | 210 const base::WeakPtr<HttpServerProperties>& http_server_properties, |
| 211 const std::vector<std::string>& alternate_protocol_values, | 211 const std::vector<std::string>& alternate_protocol_values, |
| 212 const HostPortPair& http_host_port_pair, | 212 const SchemeOriginPair& scheme_origin_pair, |
| 213 const HttpNetworkSession& session); | 213 const HttpNetworkSession& session); |
| 214 | 214 |
| 215 GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint); | 215 GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint); |
| 216 | 216 |
| 217 // Virtual interface methods. | 217 // Virtual interface methods. |
| 218 | 218 |
| 219 // Request a stream. | 219 // Request a stream. |
| 220 // Will call delegate->OnStreamReady on successful completion. | 220 // Will call delegate->OnStreamReady on successful completion. |
| 221 virtual HttpStreamRequest* RequestStream( | 221 virtual HttpStreamRequest* RequestStream( |
| 222 const HttpRequestInfo& info, | 222 const HttpRequestInfo& info, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 static bool spdy_enabled_; | 277 static bool spdy_enabled_; |
| 278 | 278 |
| 279 HostPortPair RewriteHost(HostPortPair host_port_pair); | 279 HostPortPair RewriteHost(HostPortPair host_port_pair); |
| 280 | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 281 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace net | 284 } // namespace net |
| 285 | 285 |
| 286 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 286 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |