| 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/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "net/base/hash_value.h" | 13 #include "net/base/hash_value.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 class CertVerifier; | 16 class CertVerifier; |
| 17 class NetLog; |
| 17 class URLRequestContextBuilder; | 18 class URLRequestContextBuilder; |
| 18 } // namespace net | 19 } // namespace net |
| 19 | 20 |
| 20 namespace cronet { | 21 namespace cronet { |
| 21 | 22 |
| 22 // Common configuration parameters used by Cronet to configure | 23 // Common configuration parameters used by Cronet to configure |
| 23 // URLRequestContext. | 24 // URLRequestContext. |
| 24 struct URLRequestContextConfig { | 25 struct URLRequestContextConfig { |
| 25 // Type of HTTP cache. | 26 // Type of HTTP cache. |
| 26 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net | 27 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Fallback data reduction proxy. | 97 // Fallback data reduction proxy. |
| 97 const std::string& data_reduction_fallback_proxy, | 98 const std::string& data_reduction_fallback_proxy, |
| 98 // Data reduction proxy secure proxy check URL. | 99 // Data reduction proxy secure proxy check URL. |
| 99 const std::string& data_reduction_secure_proxy_check_url, | 100 const std::string& data_reduction_secure_proxy_check_url, |
| 100 // MockCertVerifier to use for testing purposes. | 101 // MockCertVerifier to use for testing purposes. |
| 101 scoped_ptr<net::CertVerifier> mock_cert_verifier); | 102 scoped_ptr<net::CertVerifier> mock_cert_verifier); |
| 102 ~URLRequestContextConfig(); | 103 ~URLRequestContextConfig(); |
| 103 | 104 |
| 104 // Configure |context_builder| based on |this|. | 105 // Configure |context_builder| based on |this|. |
| 105 void ConfigureURLRequestContextBuilder( | 106 void ConfigureURLRequestContextBuilder( |
| 106 net::URLRequestContextBuilder* context_builder); | 107 net::URLRequestContextBuilder* context_builder, |
| 108 net::NetLog* net_log); |
| 107 | 109 |
| 108 // Enable QUIC. | 110 // Enable QUIC. |
| 109 const bool enable_quic; | 111 const bool enable_quic; |
| 110 // Enable SPDY. | 112 // Enable SPDY. |
| 111 const bool enable_spdy; | 113 const bool enable_spdy; |
| 112 // Enable SDCH. | 114 // Enable SDCH. |
| 113 const bool enable_sdch; | 115 const bool enable_sdch; |
| 114 // Type of http cache. | 116 // Type of http cache. |
| 115 const HttpCacheType http_cache; | 117 const HttpCacheType http_cache; |
| 116 // Max size of http cache in bytes. | 118 // Max size of http cache in bytes. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 144 // The list of public key pins. | 146 // The list of public key pins. |
| 145 ScopedVector<Pkp> pkp_list; | 147 ScopedVector<Pkp> pkp_list; |
| 146 | 148 |
| 147 private: | 149 private: |
| 148 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 150 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 } // namespace cronet | 153 } // namespace cronet |
| 152 | 154 |
| 153 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 155 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| OLD | NEW |