| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // URLs to exclude from forced SPDY. | 106 // URLs to exclude from forced SPDY. |
| 107 std::set<HostPortPair> forced_spdy_exclusions; | 107 std::set<HostPortPair> forced_spdy_exclusions; |
| 108 // Process Alt-Svc headers. | 108 // Process Alt-Svc headers. |
| 109 bool use_alternative_services; | 109 bool use_alternative_services; |
| 110 // Only honor alternative service entries which have a higher probability | 110 // Only honor alternative service entries which have a higher probability |
| 111 // than this value. | 111 // than this value. |
| 112 double alternative_service_probability_threshold; | 112 double alternative_service_probability_threshold; |
| 113 | 113 |
| 114 // Enables QUIC support. | 114 // Enables QUIC support. |
| 115 bool enable_quic; | 115 bool enable_quic; |
| 116 // Enables insecure QUIC (http:// URLs) support, if enable_quic is true. | |
| 117 bool enable_insecure_quic; | |
| 118 // Enables QUIC for proxies. | 116 // Enables QUIC for proxies. |
| 119 bool enable_quic_for_proxies; | 117 bool enable_quic_for_proxies; |
| 120 // Instruct QUIC to use consistent ephemeral ports when talking to | 118 // Instruct QUIC to use consistent ephemeral ports when talking to |
| 121 // the same server. | 119 // the same server. |
| 122 bool enable_quic_port_selection; | 120 bool enable_quic_port_selection; |
| 123 // Disables QUIC's 0-RTT behavior. | 121 // Disables QUIC's 0-RTT behavior. |
| 124 bool quic_always_require_handshake_confirmation; | 122 bool quic_always_require_handshake_confirmation; |
| 125 // Disables QUIC connection pooling. | 123 // Disables QUIC connection pooling. |
| 126 bool quic_disable_connection_pooling; | 124 bool quic_disable_connection_pooling; |
| 127 // If not zero, the task to load QUIC server configs from the disk cache | 125 // If not zero, the task to load QUIC server configs from the disk cache |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 277 |
| 280 NextProtoVector next_protos_; | 278 NextProtoVector next_protos_; |
| 281 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 279 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 282 | 280 |
| 283 Params params_; | 281 Params params_; |
| 284 }; | 282 }; |
| 285 | 283 |
| 286 } // namespace net | 284 } // namespace net |
| 287 | 285 |
| 288 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 286 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |