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

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

Issue 2937523002: add setter for enable_pkp_bypass_etc (Closed)
Patch Set: add small todo Created 3 years, 5 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 99
100 void SetHostResolverRules(const std::string& host_resolver_rules); 100 void SetHostResolverRules(const std::string& host_resolver_rules);
101 101
102 void set_ssl_key_log_file_name(const std::string& ssl_key_log_file_name) { 102 void set_ssl_key_log_file_name(const std::string& ssl_key_log_file_name) {
103 ssl_key_log_file_name_ = ssl_key_log_file_name; 103 ssl_key_log_file_name_ = ssl_key_log_file_name;
104 } 104 }
105 105
106 void set_pkp_list(PkpVector pkp_list) { pkp_list_ = std::move(pkp_list); } 106 void set_pkp_list(PkpVector pkp_list) { pkp_list_ = std::move(pkp_list); }
107 107
108 void set_enable_public_key_pinning_bypass_for_local_trust_anchors(
109 bool enable) {
110 enable_pkp_bypass_for_local_trust_anchors_ = enable;
111 }
112
108 // Returns the URLRequestContext associated with this object. 113 // Returns the URLRequestContext associated with this object.
109 net::URLRequestContext* GetURLRequestContext() const; 114 net::URLRequestContext* GetURLRequestContext() const;
110 115
111 // Return the URLRequestContextGetter associated with this object. 116 // Return the URLRequestContextGetter associated with this object.
112 net::URLRequestContextGetter* GetURLRequestContextGetter() const; 117 net::URLRequestContextGetter* GetURLRequestContextGetter() const;
113 118
114 private: 119 private:
115 // Performs initialization tasks that must happen on the network thread. 120 // Performs initialization tasks that must happen on the network thread.
116 void InitializeOnNetworkThread(); 121 void InitializeOnNetworkThread();
117 122
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 std::unique_ptr<base::Thread> file_user_blocking_thread_; 160 std::unique_ptr<base::Thread> file_user_blocking_thread_;
156 scoped_refptr<base::SequencedTaskRunner> pref_store_worker_pool_; 161 scoped_refptr<base::SequencedTaskRunner> pref_store_worker_pool_;
157 std::unique_ptr<net::CertVerifier> mock_cert_verifier_; 162 std::unique_ptr<net::CertVerifier> mock_cert_verifier_;
158 std::unique_ptr<net::CookieStore> cookie_store_; 163 std::unique_ptr<net::CookieStore> cookie_store_;
159 std::unique_ptr<net::URLRequestContext> main_context_; 164 std::unique_ptr<net::URLRequestContext> main_context_;
160 scoped_refptr<net::URLRequestContextGetter> main_context_getter_; 165 scoped_refptr<net::URLRequestContextGetter> main_context_getter_;
161 std::string user_agent_; 166 std::string user_agent_;
162 bool user_agent_partial_; 167 bool user_agent_partial_;
163 std::unique_ptr<net::NetLog> net_log_; 168 std::unique_ptr<net::NetLog> net_log_;
164 std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_; 169 std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_;
170 bool enable_pkp_bypass_for_local_trust_anchors_;
165 171
166 DISALLOW_COPY_AND_ASSIGN(CronetEnvironment); 172 DISALLOW_COPY_AND_ASSIGN(CronetEnvironment);
167 }; 173 };
168 174
169 } // namespace cronet 175 } // namespace cronet
170 176
171 #endif // COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ 177 #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