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

Side by Side Diff: components/cronet/ios/cronet_environment.h

Issue 2928653002: [Cronet-iOS] Public-Key-Pinning Tests (Closed)
Patch Set: Fixed DEPS 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 unified diff | Download patch
« no previous file with comments | « components/cronet/ios/Cronet.mm ('k') | components/cronet/ios/cronet_environment.mm » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ 5 #ifndef COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_
6 #define COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ 6 #define COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void set_experimental_options(const std::string& experimental_options) { 94 void set_experimental_options(const std::string& experimental_options) {
95 experimental_options_ = experimental_options; 95 experimental_options_ = experimental_options;
96 } 96 }
97 97
98 void SetHostResolverRules(const std::string& host_resolver_rules); 98 void SetHostResolverRules(const std::string& host_resolver_rules);
99 99
100 void set_ssl_key_log_file_name(const std::string& ssl_key_log_file_name) { 100 void set_ssl_key_log_file_name(const std::string& ssl_key_log_file_name) {
101 ssl_key_log_file_name_ = ssl_key_log_file_name; 101 ssl_key_log_file_name_ = ssl_key_log_file_name;
102 } 102 }
103 103
104 void set_pkp_list(ScopedVector<URLRequestContextConfig::Pkp> pkp_list) {
105 pkp_list_ = std::move(pkp_list);
106 }
107
104 // Returns the URLRequestContext associated with this object. 108 // Returns the URLRequestContext associated with this object.
105 net::URLRequestContext* GetURLRequestContext() const; 109 net::URLRequestContext* GetURLRequestContext() const;
106 110
107 // Return the URLRequestContextGetter associated with this object. 111 // Return the URLRequestContextGetter associated with this object.
108 net::URLRequestContextGetter* GetURLRequestContextGetter() const; 112 net::URLRequestContextGetter* GetURLRequestContextGetter() const;
109 113
110 private: 114 private:
111 // Performs initialization tasks that must happen on the network thread. 115 // Performs initialization tasks that must happen on the network thread.
112 void InitializeOnNetworkThread(); 116 void InitializeOnNetworkThread();
113 117
(...skipping 20 matching lines...) Expand all
134 138
135 std::string getDefaultQuicUserAgentId() const; 139 std::string getDefaultQuicUserAgentId() const;
136 140
137 bool http2_enabled_; 141 bool http2_enabled_;
138 bool quic_enabled_; 142 bool quic_enabled_;
139 std::string quic_user_agent_id_; 143 std::string quic_user_agent_id_;
140 std::string accept_language_; 144 std::string accept_language_;
141 std::string experimental_options_; 145 std::string experimental_options_;
142 std::string ssl_key_log_file_name_; 146 std::string ssl_key_log_file_name_;
143 URLRequestContextConfig::HttpCacheType http_cache_; 147 URLRequestContextConfig::HttpCacheType http_cache_;
148 ScopedVector<URLRequestContextConfig::Pkp> pkp_list_;
144 149
145 std::list<net::HostPortPair> quic_hints_; 150 std::list<net::HostPortPair> quic_hints_;
146 151
147 std::unique_ptr<base::Thread> network_io_thread_; 152 std::unique_ptr<base::Thread> network_io_thread_;
148 std::unique_ptr<base::Thread> network_cache_thread_; 153 std::unique_ptr<base::Thread> network_cache_thread_;
149 std::unique_ptr<base::Thread> file_thread_; 154 std::unique_ptr<base::Thread> file_thread_;
150 std::unique_ptr<base::Thread> file_user_blocking_thread_; 155 std::unique_ptr<base::Thread> file_user_blocking_thread_;
151 scoped_refptr<base::SequencedTaskRunner> pref_store_worker_pool_; 156 scoped_refptr<base::SequencedTaskRunner> pref_store_worker_pool_;
152 std::unique_ptr<net::CertVerifier> mock_cert_verifier_; 157 std::unique_ptr<net::CertVerifier> mock_cert_verifier_;
153 std::unique_ptr<net::CookieStore> cookie_store_; 158 std::unique_ptr<net::CookieStore> cookie_store_;
154 std::unique_ptr<net::URLRequestContext> main_context_; 159 std::unique_ptr<net::URLRequestContext> main_context_;
155 scoped_refptr<net::URLRequestContextGetter> main_context_getter_; 160 scoped_refptr<net::URLRequestContextGetter> main_context_getter_;
156 std::string user_agent_; 161 std::string user_agent_;
157 bool user_agent_partial_; 162 bool user_agent_partial_;
158 std::unique_ptr<net::NetLog> net_log_; 163 std::unique_ptr<net::NetLog> net_log_;
159 std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_; 164 std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_;
160 165
161 DISALLOW_COPY_AND_ASSIGN(CronetEnvironment); 166 DISALLOW_COPY_AND_ASSIGN(CronetEnvironment);
162 }; 167 };
163 168
164 } // namespace cronet 169 } // namespace cronet
165 170
166 #endif // COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ 171 #endif // COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « components/cronet/ios/Cronet.mm ('k') | components/cronet/ios/cronet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698