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

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

Issue 1389213003: [Cronet] Use Https for Quic Test Server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ryancl
Patch Set: Address Paul's comments Created 5 years, 2 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 <string> 8 #include <string>
9 9
10 #include "base/json/json_value_converter.h" 10 #include "base/json/json_value_converter.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 13
14 namespace net { 14 namespace net {
15 class CertVerifier;
15 class URLRequestContextBuilder; 16 class URLRequestContextBuilder;
16 } // namespace net 17 } // namespace net
17 18
18 namespace cronet { 19 namespace cronet {
19 20
20 // Common configuration parameters used by Cronet to configure 21 // Common configuration parameters used by Cronet to configure
21 // URLRequestContext. Can be parsed from JSON string passed through JNI. 22 // URLRequestContext. Can be parsed from JSON string passed through JNI.
22 struct URLRequestContextConfig { 23 struct URLRequestContextConfig {
23 // App-provided hint that server supports QUIC. 24 // App-provided hint that server supports QUIC.
24 struct QuicHint { 25 struct QuicHint {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // App-provided list of servers that support QUIC. 76 // App-provided list of servers that support QUIC.
76 ScopedVector<QuicHint> quic_hints; 77 ScopedVector<QuicHint> quic_hints;
77 // Comma-separted list of QUIC connection options. 78 // Comma-separted list of QUIC connection options.
78 std::string quic_connection_options; 79 std::string quic_connection_options;
79 // Enable Data Reduction Proxy with authentication key. 80 // Enable Data Reduction Proxy with authentication key.
80 std::string data_reduction_proxy_key; 81 std::string data_reduction_proxy_key;
81 std::string data_reduction_primary_proxy; 82 std::string data_reduction_primary_proxy;
82 std::string data_reduction_fallback_proxy; 83 std::string data_reduction_fallback_proxy;
83 std::string data_reduction_secure_proxy_check_url; 84 std::string data_reduction_secure_proxy_check_url;
84 85
86 // Cert verifier for testing.
pauljensen 2015/10/19 18:52:29 Cert->Certificate
xunjieli 2015/10/19 20:24:15 Done.
87 net::CertVerifier* mock_cert_verifier;
pauljensen 2015/10/19 18:52:29 scoped_ptr
xunjieli 2015/10/19 20:24:15 Done.
88
85 private: 89 private:
86 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); 90 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig);
87 }; 91 };
88 92
89 } // namespace cronet 93 } // namespace cronet
90 94
91 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ 95 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698