| 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_user_alternate_protocol_ports; | 199 bool enable_user_alternate_protocol_ports; |
| 200 bool enable_npn; | 200 bool enable_npn; |
| 201 bool enable_priority_dependencies; | 201 bool enable_priority_dependencies; |
| 202 bool enable_spdy31; | 202 bool enable_spdy31; |
| 203 bool enable_quic; | 203 bool enable_quic; |
| 204 NextProto protocol; | 204 NextProto protocol; |
| 205 size_t session_max_recv_window_size; | 205 size_t session_max_recv_window_size; |
| 206 size_t stream_max_recv_window_size; | 206 size_t stream_max_recv_window_size; |
| 207 SpdySession::TimeFunc time_func; | 207 SpdySession::TimeFunc time_func; |
| 208 std::unique_ptr<ProxyDelegate> proxy_delegate; | 208 std::unique_ptr<ProxyDelegate> proxy_delegate; |
| 209 bool parse_alternative_services; | |
| 210 bool enable_alternative_service_with_different_host; | 209 bool enable_alternative_service_with_different_host; |
| 211 NetLog* net_log; | 210 NetLog* net_log; |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 class SpdyURLRequestContext : public URLRequestContext { | 213 class SpdyURLRequestContext : public URLRequestContext { |
| 215 public: | 214 public: |
| 216 explicit SpdyURLRequestContext(NextProto protocol); | 215 explicit SpdyURLRequestContext(NextProto protocol); |
| 217 ~SpdyURLRequestContext() override; | 216 ~SpdyURLRequestContext() override; |
| 218 | 217 |
| 219 MockClientSocketFactory& socket_factory() { return socket_factory_; } | 218 MockClientSocketFactory& socket_factory() { return socket_factory_; } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 GURL default_url_; | 560 GURL default_url_; |
| 562 bool dependency_priorities_; | 561 bool dependency_priorities_; |
| 563 | 562 |
| 564 // Track a FIFO list of the stream_id of all created requests by priority. | 563 // Track a FIFO list of the stream_id of all created requests by priority. |
| 565 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 564 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
| 566 }; | 565 }; |
| 567 | 566 |
| 568 } // namespace net | 567 } // namespace net |
| 569 | 568 |
| 570 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 569 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |