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