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

Side by Side Diff: components/cronet/url_request_context_config.h

Issue 2052363002: Enable public key pinning of local trust anchors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed CronetPerfTestActivity test Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_URL_REQUEST_CONTEXT_CONFIG_H_ 5 #ifndef COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_
6 #define COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ 6 #define COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const std::string& data_reduction_proxy_key, 102 const std::string& data_reduction_proxy_key,
103 // Data reduction proxy. 103 // Data reduction proxy.
104 const std::string& data_reduction_primary_proxy, 104 const std::string& data_reduction_primary_proxy,
105 // Fallback data reduction proxy. 105 // Fallback data reduction proxy.
106 const std::string& data_reduction_fallback_proxy, 106 const std::string& data_reduction_fallback_proxy,
107 // Data reduction proxy secure proxy check URL. 107 // Data reduction proxy secure proxy check URL.
108 const std::string& data_reduction_secure_proxy_check_url, 108 const std::string& data_reduction_secure_proxy_check_url,
109 // MockCertVerifier to use for testing purposes. 109 // MockCertVerifier to use for testing purposes.
110 std::unique_ptr<net::CertVerifier> mock_cert_verifier, 110 std::unique_ptr<net::CertVerifier> mock_cert_verifier,
111 // Enable network quality estimator. 111 // Enable network quality estimator.
112 bool enable_network_quality_estimator); 112 bool enable_network_quality_estimator,
113 // Enable bypassing of public key pinning for local trust anchors
114 bool bypass_public_key_pinning_for_local_trust_anchors);
113 ~URLRequestContextConfig(); 115 ~URLRequestContextConfig();
114 116
115 // Configure |context_builder| based on |this|. 117 // Configure |context_builder| based on |this|.
116 void ConfigureURLRequestContextBuilder( 118 void ConfigureURLRequestContextBuilder(
117 net::URLRequestContextBuilder* context_builder, 119 net::URLRequestContextBuilder* context_builder,
118 net::NetLog* net_log, 120 net::NetLog* net_log,
119 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner); 121 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner);
120 122
121 // Enable QUIC. 123 // Enable QUIC.
122 const bool enable_quic; 124 const bool enable_quic;
(...skipping 26 matching lines...) Expand all
149 const std::string data_reduction_primary_proxy; 151 const std::string data_reduction_primary_proxy;
150 const std::string data_reduction_fallback_proxy; 152 const std::string data_reduction_fallback_proxy;
151 const std::string data_reduction_secure_proxy_check_url; 153 const std::string data_reduction_secure_proxy_check_url;
152 154
153 // Certificate verifier for testing. 155 // Certificate verifier for testing.
154 std::unique_ptr<net::CertVerifier> mock_cert_verifier; 156 std::unique_ptr<net::CertVerifier> mock_cert_verifier;
155 157
156 // Enable network quality estimator. 158 // Enable network quality estimator.
157 const bool enable_network_quality_estimator; 159 const bool enable_network_quality_estimator;
158 160
161 // Enable public key pinning bypass for local trust anchors.
162 const bool bypass_public_key_pinning_for_local_trust_anchors;
163
159 // App-provided list of servers that support QUIC. 164 // App-provided list of servers that support QUIC.
160 ScopedVector<QuicHint> quic_hints; 165 ScopedVector<QuicHint> quic_hints;
161 166
162 // The list of public key pins. 167 // The list of public key pins.
163 ScopedVector<Pkp> pkp_list; 168 ScopedVector<Pkp> pkp_list;
164 169
165 private: 170 private:
166 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); 171 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig);
167 }; 172 };
168 173
169 } // namespace cronet 174 } // namespace cronet
170 175
171 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ 176 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698