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

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

Issue 1387363004: Disable HTTP/2 over NPN (with OpenSSL). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable NPN in NSS if npn_protos.empty(). Created 5 years, 2 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_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 scoped_ptr<base::Value> QuicInfoToValue() const; 199 scoped_ptr<base::Value> QuicInfoToValue() const;
200 200
201 void CloseAllConnections(); 201 void CloseAllConnections();
202 void CloseIdleConnections(); 202 void CloseIdleConnections();
203 203
204 // Returns the original Params used to construct this session. 204 // Returns the original Params used to construct this session.
205 const Params& params() const { return params_; } 205 const Params& params() const { return params_; }
206 206
207 bool IsProtocolEnabled(AlternateProtocol protocol) const; 207 bool IsProtocolEnabled(AlternateProtocol protocol) const;
208 208
209 // Populates |*next_protos| with protocols. 209 // Populates |*alpn_protos| with protocols to be used with ALPN.
210 void GetNextProtos(NextProtoVector* next_protos) const; 210 void GetAlpnProtos(NextProtoVector* alpn_protos) const;
211
212 // Populates |*npn_protos| with protocols to be used with NPN.
213 void GetNpnProtos(NextProtoVector* npn_protos) const;
211 214
212 // Convenience function for searching through |params_| for 215 // Convenience function for searching through |params_| for
213 // |forced_spdy_exclusions|. 216 // |forced_spdy_exclusions|.
214 bool HasSpdyExclusion(HostPortPair host_port_pair) const; 217 bool HasSpdyExclusion(HostPortPair host_port_pair) const;
215 218
216 private: 219 private:
217 friend class base::RefCounted<HttpNetworkSession>; 220 friend class base::RefCounted<HttpNetworkSession>;
218 friend class HttpNetworkSessionPeer; 221 friend class HttpNetworkSessionPeer;
219 222
220 ~HttpNetworkSession(); 223 ~HttpNetworkSession();
(...skipping 22 matching lines...) Expand all
243 246
244 NextProtoVector next_protos_; 247 NextProtoVector next_protos_;
245 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 248 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
246 249
247 Params params_; 250 Params params_;
248 }; 251 };
249 252
250 } // namespace net 253 } // namespace net
251 254
252 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 255 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698