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

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

Issue 2496953002: Revert of Unify enum NextProto and enum AlternateProtocol. (Closed)
Patch Set: Created 4 years, 1 month 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 | « net/http/bidirectional_stream_unittest.cc ('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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // Creates a Value summary of the state of the QUIC sessions and 261 // Creates a Value summary of the state of the QUIC sessions and
262 // configuration. 262 // configuration.
263 std::unique_ptr<base::Value> QuicInfoToValue() const; 263 std::unique_ptr<base::Value> QuicInfoToValue() const;
264 264
265 void CloseAllConnections(); 265 void CloseAllConnections();
266 void CloseIdleConnections(); 266 void CloseIdleConnections();
267 267
268 // Returns the original Params used to construct this session. 268 // Returns the original Params used to construct this session.
269 const Params& params() const { return params_; } 269 const Params& params() const { return params_; }
270 270
271 bool IsProtocolEnabled(NextProto protocol) const; 271 bool IsProtocolEnabled(AlternateProtocol protocol) const;
272 272
273 // Populates |*alpn_protos| with protocols to be used with ALPN. 273 // Populates |*alpn_protos| with protocols to be used with ALPN.
274 void GetAlpnProtos(NextProtoVector* alpn_protos) const; 274 void GetAlpnProtos(NextProtoVector* alpn_protos) const;
275 275
276 // Populates |server_config| and |proxy_config| based on this session and 276 // Populates |server_config| and |proxy_config| based on this session and
277 // |request|. 277 // |request|.
278 void GetSSLConfig(const HttpRequestInfo& request, 278 void GetSSLConfig(const HttpRequestInfo& request,
279 SSLConfig* server_config, 279 SSLConfig* server_config,
280 SSLConfig* proxy_config) const; 280 SSLConfig* proxy_config) const;
281 281
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 NextProtoVector next_protos_; 315 NextProtoVector next_protos_;
316 316
317 Params params_; 317 Params params_;
318 318
319 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 319 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
320 }; 320 };
321 321
322 } // namespace net 322 } // namespace net
323 323
324 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 324 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « net/http/bidirectional_stream_unittest.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698