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; | |
210 }; | 209 }; |
211 | 210 |
212 class SpdyURLRequestContext : public URLRequestContext { | 211 class SpdyURLRequestContext : public URLRequestContext { |
213 public: | 212 public: |
214 SpdyURLRequestContext(); | 213 SpdyURLRequestContext(); |
215 ~SpdyURLRequestContext() override; | 214 ~SpdyURLRequestContext() override; |
216 | 215 |
217 MockClientSocketFactory& socket_factory() { return socket_factory_; } | 216 MockClientSocketFactory& socket_factory() { return socket_factory_; } |
218 | 217 |
219 private: | 218 private: |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 | 515 |
517 GURL default_url_; | 516 GURL default_url_; |
518 | 517 |
519 // Track a FIFO list of the stream_id of all created requests by priority. | 518 // Track a FIFO list of the stream_id of all created requests by priority. |
520 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 519 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
521 }; | 520 }; |
522 | 521 |
523 } // namespace net | 522 } // namespace net |
524 | 523 |
525 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 524 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
OLD | NEW |