OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 bool enable_user_alternate_protocol_ports; | 209 bool enable_user_alternate_protocol_ports; |
210 bool enable_quic; | 210 bool enable_quic; |
211 bool enable_server_push_cancellation; | 211 bool enable_server_push_cancellation; |
212 size_t session_max_recv_window_size; | 212 size_t session_max_recv_window_size; |
213 SettingsMap http2_settings; | 213 SettingsMap http2_settings; |
214 SpdySession::TimeFunc time_func; | 214 SpdySession::TimeFunc time_func; |
215 std::unique_ptr<ProxyDelegate> proxy_delegate; | 215 std::unique_ptr<ProxyDelegate> proxy_delegate; |
216 bool enable_http2_alternative_service; | 216 bool enable_http2_alternative_service; |
217 NetLog* net_log; | 217 NetLog* net_log; |
218 bool http_09_on_non_default_ports_enabled; | 218 bool http_09_on_non_default_ports_enabled; |
219 bool restrict_to_one_preconnect_for_proxies; | |
220 bool quic_do_not_mark_as_broken_on_network_change; | 219 bool quic_do_not_mark_as_broken_on_network_change; |
221 }; | 220 }; |
222 | 221 |
223 class SpdyURLRequestContext : public URLRequestContext { | 222 class SpdyURLRequestContext : public URLRequestContext { |
224 public: | 223 public: |
225 SpdyURLRequestContext(); | 224 SpdyURLRequestContext(); |
226 ~SpdyURLRequestContext() override; | 225 ~SpdyURLRequestContext() override; |
227 | 226 |
228 MockClientSocketFactory& socket_factory() { return socket_factory_; } | 227 MockClientSocketFactory& socket_factory() { return socket_factory_; } |
229 | 228 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 537 |
539 GURL default_url_; | 538 GURL default_url_; |
540 | 539 |
541 // Track a FIFO list of the stream_id of all created requests by priority. | 540 // Track a FIFO list of the stream_id of all created requests by priority. |
542 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 541 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
543 }; | 542 }; |
544 | 543 |
545 } // namespace net | 544 } // namespace net |
546 | 545 |
547 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 546 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
OLD | NEW |