OLD | NEW |
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 NextProto spdy_default_protocol; | 90 NextProto spdy_default_protocol; |
91 bool enable_spdy31; | 91 bool enable_spdy31; |
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 enable Alt-Svc entries with hostname different than that of | 97 // Whether to enable Alt-Svc entries with hostname different than that of |
98 // the origin. | 98 // the origin. |
99 bool enable_alternative_service_with_different_host; | 99 bool enable_alternative_service_with_different_host; |
| 100 // Only set for tests. |
| 101 // TODO(bnc) https://crbug.com/615497: |
| 102 // Adapt tests to https requests, remove this member. |
| 103 bool enable_alternative_service_for_insecure_origins; |
100 | 104 |
101 // Enables NPN support. Note that ALPN is always enabled. | 105 // Enables NPN support. Note that ALPN is always enabled. |
102 bool enable_npn; | 106 bool enable_npn; |
103 | 107 |
104 // Enable setting of HTTP/2 dependencies based on priority. | 108 // Enable setting of HTTP/2 dependencies based on priority. |
105 bool enable_priority_dependencies; | 109 bool enable_priority_dependencies; |
106 | 110 |
107 // Enables QUIC support. | 111 // Enables QUIC support. |
108 bool enable_quic; | 112 bool enable_quic; |
109 // Disable QUIC if a connection times out with open streams. | 113 // Disable QUIC if a connection times out with open streams. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 296 |
293 NextProtoVector next_protos_; | 297 NextProtoVector next_protos_; |
294 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 298 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
295 | 299 |
296 Params params_; | 300 Params params_; |
297 }; | 301 }; |
298 | 302 |
299 } // namespace net | 303 } // namespace net |
300 | 304 |
301 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 305 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |