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

Unified Diff: components/cronet/url_request_context_config.h

Issue 2952653002: Make ParseAndSetExperimentalOptions() a member of URLRequestContextConfig (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cronet/url_request_context_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/url_request_context_config.h
diff --git a/components/cronet/url_request_context_config.h b/components/cronet/url_request_context_config.h
index 6e55a92a29e665e6ed0626039ef1f67316ff76f2..b2433695d03d243e3b7e72f17ab70f950c774a14 100644
--- a/components/cronet/url_request_context_config.h
+++ b/components/cronet/url_request_context_config.h
@@ -30,6 +30,9 @@ namespace cronet {
// Common configuration parameters used by Cronet to configure
// URLRequestContext.
+// TODO(mgersh): This shouldn't be a struct. Refactor into a struct that holds
+// the data and a class that handles the logic and holds the struct, or some
+// other more reasonable way of passing around configuration.
struct URLRequestContextConfig {
// Type of HTTP cache.
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net.impl
@@ -112,6 +115,13 @@ struct URLRequestContextConfig {
const std::string& cert_verifier_data);
~URLRequestContextConfig();
+ // Parses experimental options and makes appropriate changes to settings in
+ // the URLRequestContextConfig and URLRequestContextBuilder.
+ void ParseAndSetExperimentalOptions(
kapishnikov 2017/06/20 19:34:08 This method looks internal to URLRequestContextCon
mgersh 2017/06/20 21:33:57 Made it private.
+ net::URLRequestContextBuilder* context_builder,
+ net::NetLog* net_log,
+ const scoped_refptr<base::SequencedTaskRunner>& file_task_runner);
+
// Configures |context_builder| based on |this|.
void ConfigureURLRequestContextBuilder(
net::URLRequestContextBuilder* context_builder,
@@ -166,7 +176,8 @@ struct URLRequestContextConfig {
ScopedVector<Pkp> pkp_list;
// Experimental options that are recognized by the config parser.
- std::unique_ptr<base::DictionaryValue> effective_experimental_options;
+ std::unique_ptr<base::DictionaryValue> effective_experimental_options =
+ nullptr;
private:
DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig);
« no previous file with comments | « no previous file | components/cronet/url_request_context_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698