| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 virtual bool using_spdy() const = 0; | 172 virtual bool using_spdy() const = 0; |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 // The HttpStreamFactory defines an interface for creating usable HttpStreams. | 175 // The HttpStreamFactory defines an interface for creating usable HttpStreams. |
| 176 class NET_EXPORT HttpStreamFactory { | 176 class NET_EXPORT HttpStreamFactory { |
| 177 public: | 177 public: |
| 178 virtual ~HttpStreamFactory(); | 178 virtual ~HttpStreamFactory(); |
| 179 | 179 |
| 180 void ProcessAlternateProtocol( | 180 void ProcessAlternateProtocol( |
| 181 const base::WeakPtr<HttpServerProperties>& http_server_properties, | 181 const base::WeakPtr<HttpServerProperties>& http_server_properties, |
| 182 const std::string& alternate_protocol_str, | 182 const std::vector<std::string>& alternate_protocol_values, |
| 183 const HostPortPair& http_host_port_pair, | 183 const HostPortPair& http_host_port_pair, |
| 184 const HttpNetworkSession& session); | 184 const HttpNetworkSession& session); |
| 185 | 185 |
| 186 GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint); | 186 GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint); |
| 187 | 187 |
| 188 // Virtual interface methods. | 188 // Virtual interface methods. |
| 189 | 189 |
| 190 // Request a stream. | 190 // Request a stream. |
| 191 // Will call delegate->OnStreamReady on successful completion. | 191 // Will call delegate->OnStreamReady on successful completion. |
| 192 virtual HttpStreamRequest* RequestStream( | 192 virtual HttpStreamRequest* RequestStream( |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 private: | 237 private: |
| 238 static bool spdy_enabled_; | 238 static bool spdy_enabled_; |
| 239 | 239 |
| 240 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 240 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } // namespace net | 243 } // namespace net |
| 244 | 244 |
| 245 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 245 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |