| OLD | NEW | 
|---|
| 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  Loading... | 
| 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   // Certificate verifier for testing. | 
|  | 87   scoped_ptr<net::CertVerifier> mock_cert_verifier; | 
|  | 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_ | 
| OLD | NEW | 
|---|