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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // SSL handshake as well as by HTTP Alternate-Protocol. | 95 // SSL handshake as well as by HTTP Alternate-Protocol. |
96 // TODO(mmenke): This is currently empty by default, and alternate | 96 // TODO(mmenke): This is currently empty by default, and alternate |
97 // protocols are disabled. We should use some reasonable | 97 // protocols are disabled. We should use some reasonable |
98 // defaults. | 98 // defaults. |
99 NextProtoVector next_protos; | 99 NextProtoVector next_protos; |
100 size_t spdy_session_max_recv_window_size; | 100 size_t spdy_session_max_recv_window_size; |
101 size_t spdy_stream_max_recv_window_size; | 101 size_t spdy_stream_max_recv_window_size; |
102 size_t spdy_initial_max_concurrent_streams; | 102 size_t spdy_initial_max_concurrent_streams; |
103 // Source of time for SPDY connections. | 103 // Source of time for SPDY connections. |
104 SpdySessionPool::TimeFunc time_func; | 104 SpdySessionPool::TimeFunc time_func; |
105 // This SPDY proxy is allowed to push resources from origins that are | |
106 // different from those of their associated streams. | |
107 std::string trusted_spdy_proxy; | |
108 // URLs to exclude from forced SPDY. | 105 // URLs to exclude from forced SPDY. |
109 std::set<HostPortPair> forced_spdy_exclusions; | 106 std::set<HostPortPair> forced_spdy_exclusions; |
110 // Whether to parse Alt-Svc headers. | 107 // Whether to parse Alt-Svc headers. |
111 bool parse_alternative_services; | 108 bool parse_alternative_services; |
112 // Whether to enable Alt-Svc entries with hostname different than that of | 109 // Whether to enable Alt-Svc entries with hostname different than that of |
113 // the origin. | 110 // the origin. |
114 bool enable_alternative_service_with_different_host; | 111 bool enable_alternative_service_with_different_host; |
115 // Only honor alternative service entries which have a higher probability | 112 // Only honor alternative service entries which have a higher probability |
116 // than this value. | 113 // than this value. |
117 double alternative_service_probability_threshold; | 114 double alternative_service_probability_threshold; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 304 |
308 NextProtoVector next_protos_; | 305 NextProtoVector next_protos_; |
309 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 306 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
310 | 307 |
311 Params params_; | 308 Params params_; |
312 }; | 309 }; |
313 | 310 |
314 } // namespace net | 311 } // namespace net |
315 | 312 |
316 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 313 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |