Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: net/http/http_stream_factory.h

Issue 339663010: Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eliminate static initializer Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698