Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: net/spdy/spdy_test_util_common.h

Issue 2253653002: Only allow HTTP/0.9 support on default ports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_stream_parser_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/http/http_stream_parser_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698