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

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

Issue 1941083002: JobController 1: Adding a new class HttpStreamFactoryImpl::JobController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync and fix compile only, Plz use PS18 to review new changes. Created 4 years, 6 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
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 // The HttpStreamFactory defines an interface for creating usable HttpStreams. 199 // The HttpStreamFactory defines an interface for creating usable HttpStreams.
200 class NET_EXPORT HttpStreamFactory { 200 class NET_EXPORT HttpStreamFactory {
201 public: 201 public:
202 virtual ~HttpStreamFactory(); 202 virtual ~HttpStreamFactory();
203 203
204 void ProcessAlternativeServices(HttpNetworkSession* session, 204 void ProcessAlternativeServices(HttpNetworkSession* session,
205 const HttpResponseHeaders* headers, 205 const HttpResponseHeaders* headers,
206 const url::SchemeHostPort& http_server); 206 const url::SchemeHostPort& http_server);
207 207
208 GURL ApplyHostMappingRules(const GURL& url, HostPortPair* endpoint);
209
210 // Virtual interface methods. 208 // Virtual interface methods.
211 209
212 // Request a stream. 210 // Request a stream.
213 // Will call delegate->OnStreamReady on successful completion. 211 // Will call delegate->OnStreamReady on successful completion.
214 virtual HttpStreamRequest* RequestStream( 212 virtual HttpStreamRequest* RequestStream(
215 const HttpRequestInfo& info, 213 const HttpRequestInfo& info,
216 RequestPriority priority, 214 RequestPriority priority,
217 const SSLConfig& server_ssl_config, 215 const SSLConfig& server_ssl_config,
218 const SSLConfig& proxy_ssl_config, 216 const SSLConfig& proxy_ssl_config,
219 HttpStreamRequest::Delegate* delegate, 217 HttpStreamRequest::Delegate* delegate,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 static bool spdy_enabled_; 266 static bool spdy_enabled_;
269 267
270 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server); 268 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server);
271 269
272 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 270 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
273 }; 271 };
274 272
275 } // namespace net 273 } // namespace net
276 274
277 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 275 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698