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

Side by Side Diff: net/url_request/url_request_context_builder.h

Issue 2906463002: Make HttpNetworkSession::host_mapping_rules no longer a pointer. (Closed)
Patch Set: More upstream merge conflicts! Fun! Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class is useful for building a simple URLRequestContext. Most creators 5 // This class is useful for building a simple URLRequestContext. Most creators
6 // of new URLRequestContexts should use this helper class to construct it. Call 6 // of new URLRequestContexts should use this helper class to construct it. Call
7 // any configuration params, and when done, invoke Build() to construct the 7 // any configuration params, and when done, invoke Build() to construct the
8 // URLRequestContext. This URLRequestContext will own all its own storage. 8 // URLRequestContext. This URLRequestContext will own all its own storage.
9 // 9 //
10 // URLRequestContextBuilder and its associated params classes are initially 10 // URLRequestContextBuilder and its associated params classes are initially
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 struct NET_EXPORT HttpNetworkSessionParams { 87 struct NET_EXPORT HttpNetworkSessionParams {
88 HttpNetworkSessionParams(); 88 HttpNetworkSessionParams();
89 ~HttpNetworkSessionParams(); 89 ~HttpNetworkSessionParams();
90 90
91 // Configutes |params| to match the settings in |this|. 91 // Configutes |params| to match the settings in |this|.
92 // TODO(mmenke): Temporary utility function. Once everything is using a 92 // TODO(mmenke): Temporary utility function. Once everything is using a
93 // URLRequestContextBuilder, can make this no longer publicly accessible. 93 // URLRequestContextBuilder, can make this no longer publicly accessible.
94 void ConfigureSessionParams(HttpNetworkSession::Params* params) const; 94 void ConfigureSessionParams(HttpNetworkSession::Params* params) const;
95 95
96 // These fields mirror those in HttpNetworkSession::Params; 96 // These fields mirror those in HttpNetworkSession::Params;
97 HostMappingRules* host_mapping_rules; 97 HostMappingRules host_mapping_rules;
98 bool ignore_certificate_errors; 98 bool ignore_certificate_errors;
99 uint16_t testing_fixed_http_port; 99 uint16_t testing_fixed_http_port;
100 uint16_t testing_fixed_https_port; 100 uint16_t testing_fixed_https_port;
101 bool enable_http2; 101 bool enable_http2;
102 bool enable_quic; 102 bool enable_quic;
103 std::string quic_user_agent_id; 103 std::string quic_user_agent_id;
104 int quic_max_server_configs_stored_in_properties; 104 int quic_max_server_configs_stored_in_properties;
105 QuicTagVector quic_connection_options; 105 QuicTagVector quic_connection_options;
106 bool quic_close_sessions_on_ip_change; 106 bool quic_close_sessions_on_ip_change;
107 int quic_idle_connection_timeout_seconds; 107 int quic_idle_connection_timeout_seconds;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // Not owned by the context builder. Once it is set to a non-null value, it 392 // Not owned by the context builder. Once it is set to a non-null value, it
393 // is guaranteed to be non-null during the lifetime of |this|. 393 // is guaranteed to be non-null during the lifetime of |this|.
394 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; 394 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_;
395 395
396 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); 396 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
397 }; 397 };
398 398
399 } // namespace net 399 } // namespace net
400 400
401 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 401 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698