| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 NextProto spdy_default_protocol; | 89 NextProto spdy_default_protocol; |
| 90 // The protocols supported by NPN (next protocol negotiation) during the | 90 // The protocols supported by NPN (next protocol negotiation) during the |
| 91 // SSL handshake as well as by HTTP Alternate-Protocol. | 91 // SSL handshake as well as by HTTP Alternate-Protocol. |
| 92 // TODO(mmenke): This is currently empty by default, and alternate | 92 // TODO(mmenke): This is currently empty by default, and alternate |
| 93 // protocols are disabled. We should use some reasonable | 93 // protocols are disabled. We should use some reasonable |
| 94 // defaults. | 94 // defaults. |
| 95 NextProtoVector next_protos; | 95 NextProtoVector next_protos; |
| 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 size_t spdy_max_concurrent_streams_limit; | |
| 100 SpdySessionPool::TimeFunc time_func; | 99 SpdySessionPool::TimeFunc time_func; |
| 101 std::string trusted_spdy_proxy; | 100 std::string trusted_spdy_proxy; |
| 102 // URLs to exclude from forced SPDY. | 101 // URLs to exclude from forced SPDY. |
| 103 std::set<HostPortPair> forced_spdy_exclusions; | 102 std::set<HostPortPair> forced_spdy_exclusions; |
| 104 // Noe: Using this in the case of NPN for HTTP only results in the browser | 103 // Noe: Using this in the case of NPN for HTTP only results in the browser |
| 105 // trying SSL and then falling back to http. | 104 // trying SSL and then falling back to http. |
| 106 bool use_alternate_protocols; | 105 bool use_alternate_protocols; |
| 107 double alternative_service_probability_threshold; | 106 double alternative_service_probability_threshold; |
| 108 | 107 |
| 109 bool enable_quic; | 108 bool enable_quic; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 239 |
| 241 NextProtoVector next_protos_; | 240 NextProtoVector next_protos_; |
| 242 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 241 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 243 | 242 |
| 244 Params params_; | 243 Params params_; |
| 245 }; | 244 }; |
| 246 | 245 |
| 247 } // namespace net | 246 } // namespace net |
| 248 | 247 |
| 249 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 248 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |