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

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

Issue 2964603002: JobController: do not create alternative job for those AlternativeServiceInfo (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_IMPL_JOB_CONTROLLER_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "net/base/host_port_pair.h" 10 #include "net/base/host_port_pair.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 AlternativeServiceInfo GetAlternativeServiceInfoFor( 258 AlternativeServiceInfo GetAlternativeServiceInfoFor(
259 const HttpRequestInfo& request_info, 259 const HttpRequestInfo& request_info,
260 HttpStreamRequest::Delegate* delegate, 260 HttpStreamRequest::Delegate* delegate,
261 HttpStreamRequest::StreamType stream_type); 261 HttpStreamRequest::StreamType stream_type);
262 262
263 AlternativeServiceInfo GetAlternativeServiceInfoInternal( 263 AlternativeServiceInfo GetAlternativeServiceInfoInternal(
264 const HttpRequestInfo& request_info, 264 const HttpRequestInfo& request_info,
265 HttpStreamRequest::Delegate* delegate, 265 HttpStreamRequest::Delegate* delegate,
266 HttpStreamRequest::StreamType stream_type); 266 HttpStreamRequest::StreamType stream_type);
267 267
268 // Returns a QuicVersion that has been advertised in |advertised_versions|
269 // and supported by the net stack. If more than one QuicVersions are
Ryan Hamilton 2017/06/30 02:45:11 nit: can you remove "by the net stack" from this c
Zhongyi Shi 2017/06/30 21:08:43 Done.
270 // supported, the first matched in the supported versions will be returned.
271 // If no mutually supported version is found,
272 // QUIC_VERSION_UNSUPPORTED_VERSION will be returned.
273 QuicVersion SelectQuicVersion(const QuicVersionVector& advertised_versions);
274
268 // Remove session from the SpdySessionRequestMap. 275 // Remove session from the SpdySessionRequestMap.
269 void RemoveRequestFromSpdySessionRequestMap(); 276 void RemoveRequestFromSpdySessionRequestMap();
270 277
271 // Returns true if the |request_| can be fetched via an alternative 278 // Returns true if the |request_| can be fetched via an alternative
272 // proxy server, and sets |alternative_proxy_server| to the available 279 // proxy server, and sets |alternative_proxy_server| to the available
273 // alternative proxy server. |alternative_proxy_server| should not be null, 280 // alternative proxy server. |alternative_proxy_server| should not be null,
274 // and is owned by the caller. 281 // and is owned by the caller.
275 bool ShouldCreateAlternativeProxyServerJob( 282 bool ShouldCreateAlternativeProxyServerJob(
276 const ProxyInfo& proxy_info_, 283 const ProxyInfo& proxy_info_,
277 const GURL& url, 284 const GURL& url,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 HttpStreamRequest::StreamType stream_type_; 364 HttpStreamRequest::StreamType stream_type_;
358 RequestPriority priority_; 365 RequestPriority priority_;
359 const NetLogWithSource net_log_; 366 const NetLogWithSource net_log_;
360 367
361 base::WeakPtrFactory<JobController> ptr_factory_; 368 base::WeakPtrFactory<JobController> ptr_factory_;
362 }; 369 };
363 370
364 } // namespace net 371 } // namespace net
365 372
366 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ 373 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698