| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class NetLog; | 23 class NetLog; |
| 24 class URLRequestContextBuilder; | 24 class URLRequestContextBuilder; |
| 25 } // namespace net | 25 } // namespace net |
| 26 | 26 |
| 27 namespace cronet { | 27 namespace cronet { |
| 28 | 28 |
| 29 // Common configuration parameters used by Cronet to configure | 29 // Common configuration parameters used by Cronet to configure |
| 30 // URLRequestContext. | 30 // URLRequestContext. |
| 31 struct URLRequestContextConfig { | 31 struct URLRequestContextConfig { |
| 32 // Type of HTTP cache. | 32 // Type of HTTP cache. |
| 33 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net | 33 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net.impl |
| 34 enum HttpCacheType { | 34 enum HttpCacheType { |
| 35 // No HTTP cache. | 35 // No HTTP cache. |
| 36 DISABLED, | 36 DISABLED, |
| 37 // HTTP cache persisted to disk. | 37 // HTTP cache persisted to disk. |
| 38 DISK, | 38 DISK, |
| 39 // HTTP cache kept in memory. | 39 // HTTP cache kept in memory. |
| 40 MEMORY, | 40 MEMORY, |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // App-provided hint that server supports QUIC. | 43 // App-provided hint that server supports QUIC. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // The list of public key pins. | 172 // The list of public key pins. |
| 173 ScopedVector<Pkp> pkp_list; | 173 ScopedVector<Pkp> pkp_list; |
| 174 | 174 |
| 175 private: | 175 private: |
| 176 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 176 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace cronet | 179 } // namespace cronet |
| 180 | 180 |
| 181 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 181 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| OLD | NEW |