| 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" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 net::URLRequestContextBuilder* context_builder); | 51 net::URLRequestContextBuilder* context_builder); |
| 52 | 52 |
| 53 // Register |converter| for use in converter.Convert(). | 53 // Register |converter| for use in converter.Convert(). |
| 54 static void RegisterJSONConverter( | 54 static void RegisterJSONConverter( |
| 55 base::JSONValueConverter<URLRequestContextConfig>* converter); | 55 base::JSONValueConverter<URLRequestContextConfig>* converter); |
| 56 | 56 |
| 57 // Enable QUIC. | 57 // Enable QUIC. |
| 58 bool enable_quic; | 58 bool enable_quic; |
| 59 // Enable SPDY. | 59 // Enable SPDY. |
| 60 bool enable_spdy; | 60 bool enable_spdy; |
| 61 // Enable SDCH. |
| 62 bool enable_sdch; |
| 61 // Type of http cache: "HTTP_CACHE_DISABLED", "HTTP_CACHE_DISK" or | 63 // Type of http cache: "HTTP_CACHE_DISABLED", "HTTP_CACHE_DISK" or |
| 62 // "HTTP_CACHE_IN_MEMORY". | 64 // "HTTP_CACHE_IN_MEMORY". |
| 63 std::string http_cache; | 65 std::string http_cache; |
| 64 // Max size of http cache in bytes. | 66 // Max size of http cache in bytes. |
| 65 int http_cache_max_size; | 67 int http_cache_max_size; |
| 66 // Disable caching for HTTP responses. Other information may be stored in | 68 // Disable caching for HTTP responses. Other information may be stored in |
| 67 // the cache. | 69 // the cache. |
| 68 bool load_disable_cache; | 70 bool load_disable_cache; |
| 69 // Storage path for http cache and cookie storage. | 71 // Storage path for http cache and cookie storage. |
| 70 std::string storage_path; | 72 std::string storage_path; |
| 71 // User-Agent request header field. | 73 // User-Agent request header field. |
| 72 std::string user_agent; | 74 std::string user_agent; |
| 73 // App-provided list of servers that support QUIC. | 75 // App-provided list of servers that support QUIC. |
| 74 ScopedVector<QuicHint> quic_hints; | 76 ScopedVector<QuicHint> quic_hints; |
| 75 // Comma-separted list of QUIC connection options. | 77 // Comma-separted list of QUIC connection options. |
| 76 std::string quic_connection_options; | 78 std::string quic_connection_options; |
| 77 | 79 |
| 78 private: | 80 private: |
| 79 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 81 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 } // namespace cronet | 84 } // namespace cronet |
| 83 | 85 |
| 84 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 86 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| OLD | NEW |