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

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

Issue 2030023005: Disable AltSvc from insecure origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 | « no previous file | 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool enable_http2; 92 bool enable_http2;
93 size_t spdy_session_max_recv_window_size; 93 size_t spdy_session_max_recv_window_size;
94 size_t spdy_stream_max_recv_window_size; 94 size_t spdy_stream_max_recv_window_size;
95 // Source of time for SPDY connections. 95 // Source of time for SPDY connections.
96 SpdySessionPool::TimeFunc time_func; 96 SpdySessionPool::TimeFunc time_func;
97 // Whether to parse Alt-Svc headers. 97 // Whether to parse Alt-Svc headers.
98 bool parse_alternative_services; 98 bool parse_alternative_services;
99 // Whether to enable Alt-Svc entries with hostname different than that of 99 // Whether to enable Alt-Svc entries with hostname different than that of
100 // the origin. 100 // the origin.
101 bool enable_alternative_service_with_different_host; 101 bool enable_alternative_service_with_different_host;
102 // Only set for tests.
103 // TODO(bnc) https://crbug.com/615497:
104 // Adapt tests to https requests, remove this member.
105 bool enable_alternative_service_for_insecure_origins;
102 106
103 // Enables NPN support. Note that ALPN is always enabled. 107 // Enables NPN support. Note that ALPN is always enabled.
104 bool enable_npn; 108 bool enable_npn;
105 109
106 // Enable setting of HTTP/2 dependencies based on priority. 110 // Enable setting of HTTP/2 dependencies based on priority.
107 bool enable_priority_dependencies; 111 bool enable_priority_dependencies;
108 112
109 // Enables QUIC support. 113 // Enables QUIC support.
110 bool enable_quic; 114 bool enable_quic;
111 // Disable QUIC if a connection times out with open streams. 115 // Disable QUIC if a connection times out with open streams.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 298
295 NextProtoVector next_protos_; 299 NextProtoVector next_protos_;
296 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 300 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
297 301
298 Params params_; 302 Params params_;
299 }; 303 };
300 304
301 } // namespace net 305 } // namespace net
302 306
303 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 307 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698