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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 bool enable_ip_pooling; | 199 bool enable_ip_pooling; |
200 bool enable_ping; | 200 bool enable_ping; |
201 bool enable_user_alternate_protocol_ports; | 201 bool enable_user_alternate_protocol_ports; |
202 bool enable_quic; | 202 bool enable_quic; |
203 size_t session_max_recv_window_size; | 203 size_t session_max_recv_window_size; |
204 size_t stream_max_recv_window_size; | 204 size_t stream_max_recv_window_size; |
205 SpdySession::TimeFunc time_func; | 205 SpdySession::TimeFunc time_func; |
206 std::unique_ptr<ProxyDelegate> proxy_delegate; | 206 std::unique_ptr<ProxyDelegate> proxy_delegate; |
207 bool enable_http2_alternative_service_with_different_host; | 207 bool enable_http2_alternative_service_with_different_host; |
208 NetLog* net_log; | 208 NetLog* net_log; |
| 209 bool http_09_on_non_default_ports_enabled; |
209 }; | 210 }; |
210 | 211 |
211 class SpdyURLRequestContext : public URLRequestContext { | 212 class SpdyURLRequestContext : public URLRequestContext { |
212 public: | 213 public: |
213 SpdyURLRequestContext(); | 214 SpdyURLRequestContext(); |
214 ~SpdyURLRequestContext() override; | 215 ~SpdyURLRequestContext() override; |
215 | 216 |
216 MockClientSocketFactory& socket_factory() { return socket_factory_; } | 217 MockClientSocketFactory& socket_factory() { return socket_factory_; } |
217 | 218 |
218 private: | 219 private: |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 | 516 |
516 GURL default_url_; | 517 GURL default_url_; |
517 | 518 |
518 // Track a FIFO list of the stream_id of all created requests by priority. | 519 // Track a FIFO list of the stream_id of all created requests by priority. |
519 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 520 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
520 }; | 521 }; |
521 | 522 |
522 } // namespace net | 523 } // namespace net |
523 | 524 |
524 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 525 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
OLD | NEW |