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

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

Issue 1540463003: Change the interface of GetAlternativeServicesFor, always return the best Alt-Svc entry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change hanging_data_ to vector Created 4 years, 11 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_IMPL_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 HttpStreamRequest* RequestStreamInternal( 79 HttpStreamRequest* RequestStreamInternal(
80 const HttpRequestInfo& info, 80 const HttpRequestInfo& info,
81 RequestPriority priority, 81 RequestPriority priority,
82 const SSLConfig& server_ssl_config, 82 const SSLConfig& server_ssl_config,
83 const SSLConfig& proxy_ssl_config, 83 const SSLConfig& proxy_ssl_config,
84 HttpStreamRequest::Delegate* delegate, 84 HttpStreamRequest::Delegate* delegate,
85 WebSocketHandshakeStreamBase::CreateHelper* create_helper, 85 WebSocketHandshakeStreamBase::CreateHelper* create_helper,
86 const BoundNetLog& net_log); 86 const BoundNetLog& net_log);
87 87
88 AlternativeServiceVector GetAlternativeServicesFor( 88 AlternativeService GetAlternativeServiceFor(
89 const GURL& original_url, 89 const HttpRequestInfo& request_info,
90 HttpStreamRequest::Delegate* delegate); 90 HttpStreamRequest::Delegate* delegate);
91 91
92 // Detaches |job| from |request|. 92 // Detaches |job| from |request|.
93 void OrphanJob(Job* job, const Request* request); 93 void OrphanJob(Job* job, const Request* request);
94 94
95 // Called when a SpdySession is ready. It will find appropriate Requests and 95 // Called when a SpdySession is ready. It will find appropriate Requests and
96 // fulfill them. |direct| indicates whether or not |spdy_session| uses a 96 // fulfill them. |direct| indicates whether or not |spdy_session| uses a
97 // proxy. 97 // proxy.
98 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session, 98 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session,
99 bool direct, 99 bool direct,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // deleted when the factory is destroyed. 139 // deleted when the factory is destroyed.
140 std::set<const Job*> preconnect_job_set_; 140 std::set<const Job*> preconnect_job_set_;
141 141
142 const bool for_websockets_; 142 const bool for_websockets_;
143 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); 143 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl);
144 }; 144 };
145 145
146 } // namespace net 146 } // namespace net
147 147
148 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ 148 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl.cc » ('j') | net/http/http_stream_factory_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698