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

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: Re: #7. 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
« no previous file with comments | « chrome/browser/resources/net_internals/spdy_view.html ('k') | net/http/http_network_session.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_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 HttpNetworkSessionPeer; 220 friend class HttpNetworkSessionPeer;
218 221
219 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); 222 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type);
220 223
(...skipping 19 matching lines...) Expand all
240 243
241 NextProtoVector next_protos_; 244 NextProtoVector next_protos_;
242 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 245 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
243 246
244 Params params_; 247 Params params_;
245 }; 248 };
246 249
247 } // namespace net 250 } // namespace net
248 251
249 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 252 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/spdy_view.html ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698