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

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

Issue 2600973002: Implement HTTP/2 settings field trial parameters. (Closed)
Patch Set: Re: #7. Created 3 years, 12 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/spdy/spdy_session_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
11 #include <map>
11 #include <memory> 12 #include <memory>
12 #include <string> 13 #include <string>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "crypto/ec_private_key.h" 18 #include "crypto/ec_private_key.h"
18 #include "crypto/ec_signature_creator.h" 19 #include "crypto/ec_signature_creator.h"
19 #include "net/base/completion_callback.h" 20 #include "net/base/completion_callback.h"
20 #include "net/base/proxy_delegate.h" 21 #include "net/base/proxy_delegate.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 std::unique_ptr<ProxyService> proxy_service; 195 std::unique_ptr<ProxyService> proxy_service;
195 scoped_refptr<SSLConfigService> ssl_config_service; 196 scoped_refptr<SSLConfigService> ssl_config_service;
196 std::unique_ptr<MockClientSocketFactory> socket_factory; 197 std::unique_ptr<MockClientSocketFactory> socket_factory;
197 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; 198 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory;
198 std::unique_ptr<HttpServerPropertiesImpl> http_server_properties; 199 std::unique_ptr<HttpServerPropertiesImpl> http_server_properties;
199 bool enable_ip_pooling; 200 bool enable_ip_pooling;
200 bool enable_ping; 201 bool enable_ping;
201 bool enable_user_alternate_protocol_ports; 202 bool enable_user_alternate_protocol_ports;
202 bool enable_quic; 203 bool enable_quic;
203 size_t session_max_recv_window_size; 204 size_t session_max_recv_window_size;
204 size_t stream_max_recv_window_size; 205 SettingsMap http2_settings;
205 SpdySession::TimeFunc time_func; 206 SpdySession::TimeFunc time_func;
206 std::unique_ptr<ProxyDelegate> proxy_delegate; 207 std::unique_ptr<ProxyDelegate> proxy_delegate;
207 bool enable_http2_alternative_service_with_different_host; 208 bool enable_http2_alternative_service_with_different_host;
208 NetLog* net_log; 209 NetLog* net_log;
209 bool http_09_on_non_default_ports_enabled; 210 bool http_09_on_non_default_ports_enabled;
210 }; 211 };
211 212
212 class SpdyURLRequestContext : public URLRequestContext { 213 class SpdyURLRequestContext : public URLRequestContext {
213 public: 214 public:
214 SpdyURLRequestContext(); 215 SpdyURLRequestContext();
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 GURL default_url_; 516 GURL default_url_;
516 517
517 // 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.
518 std::map<int, std::vector<int>> priority_to_stream_id_list_; 519 std::map<int, std::vector<int>> priority_to_stream_id_list_;
519 }; 520 };
520 521
521 } // namespace net 522 } // namespace net
522 523
523 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 524 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_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