| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Use SPDY ping frames to test for connection health after idle. | 91 // Use SPDY ping frames to test for connection health after idle. |
| 92 bool enable_spdy_ping_based_connection_checking; | 92 bool enable_spdy_ping_based_connection_checking; |
| 93 NextProto spdy_default_protocol; | 93 NextProto spdy_default_protocol; |
| 94 bool enable_spdy31; | 94 bool enable_spdy31; |
| 95 bool enable_http2; | 95 bool enable_http2; |
| 96 size_t spdy_session_max_recv_window_size; | 96 size_t spdy_session_max_recv_window_size; |
| 97 size_t spdy_stream_max_recv_window_size; | 97 size_t spdy_stream_max_recv_window_size; |
| 98 size_t spdy_initial_max_concurrent_streams; | 98 size_t spdy_initial_max_concurrent_streams; |
| 99 // Source of time for SPDY connections. | 99 // Source of time for SPDY connections. |
| 100 SpdySessionPool::TimeFunc time_func; | 100 SpdySessionPool::TimeFunc time_func; |
| 101 // This SPDY proxy is allowed to push resources from origins that are | |
| 102 // different from those of their associated streams. | |
| 103 std::string trusted_spdy_proxy; | |
| 104 // URLs to exclude from forced SPDY. | 101 // URLs to exclude from forced SPDY. |
| 105 std::set<HostPortPair> forced_spdy_exclusions; | 102 std::set<HostPortPair> forced_spdy_exclusions; |
| 106 // Whether to parse Alt-Svc headers. | 103 // Whether to parse Alt-Svc headers. |
| 107 bool parse_alternative_services; | 104 bool parse_alternative_services; |
| 108 // Whether to enable Alt-Svc entries with hostname different than that of | 105 // Whether to enable Alt-Svc entries with hostname different than that of |
| 109 // the origin. | 106 // the origin. |
| 110 bool enable_alternative_service_with_different_host; | 107 bool enable_alternative_service_with_different_host; |
| 111 // Only honor alternative service entries which have a higher probability | 108 // Only honor alternative service entries which have a higher probability |
| 112 // than this value. | 109 // than this value. |
| 113 double alternative_service_probability_threshold; | 110 double alternative_service_probability_threshold; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 300 |
| 304 NextProtoVector next_protos_; | 301 NextProtoVector next_protos_; |
| 305 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 302 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 306 | 303 |
| 307 Params params_; | 304 Params params_; |
| 308 }; | 305 }; |
| 309 | 306 |
| 310 } // namespace net | 307 } // namespace net |
| 311 | 308 |
| 312 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 309 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |