| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // HttpNetworkSession. | 258 // HttpNetworkSession. |
| 259 static void set_spdy_enabled(bool value) { | 259 static void set_spdy_enabled(bool value) { |
| 260 spdy_enabled_ = value; | 260 spdy_enabled_ = value; |
| 261 } | 261 } |
| 262 static bool spdy_enabled() { return spdy_enabled_; } | 262 static bool spdy_enabled() { return spdy_enabled_; } |
| 263 | 263 |
| 264 protected: | 264 protected: |
| 265 HttpStreamFactory(); | 265 HttpStreamFactory(); |
| 266 | 266 |
| 267 private: | 267 private: |
| 268 void ProcessAlternativeService( | |
| 269 const base::WeakPtr<HttpServerProperties>& http_server_properties, | |
| 270 base::StringPiece alternative_service_str, | |
| 271 const url::SchemeHostPort& http_server, | |
| 272 const HttpNetworkSession& session); | |
| 273 | |
| 274 void ProcessAlternateProtocol( | |
| 275 const base::WeakPtr<HttpServerProperties>& http_server_properties, | |
| 276 const std::vector<std::string>& alternate_protocol_values, | |
| 277 const url::SchemeHostPort& http_server, | |
| 278 const HttpNetworkSession& session); | |
| 279 | |
| 280 static bool spdy_enabled_; | 268 static bool spdy_enabled_; |
| 281 | 269 |
| 282 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server); | 270 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server); |
| 283 | 271 |
| 284 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 272 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 285 }; | 273 }; |
| 286 | 274 |
| 287 } // namespace net | 275 } // namespace net |
| 288 | 276 |
| 289 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 277 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |