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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 int http_cache_max_size; | 68 int http_cache_max_size; |
69 // Disable caching for HTTP responses. Other information may be stored in | 69 // Disable caching for HTTP responses. Other information may be stored in |
70 // the cache. | 70 // the cache. |
71 bool load_disable_cache; | 71 bool load_disable_cache; |
72 // Storage path for http cache and cookie storage. | 72 // Storage path for http cache and cookie storage. |
73 std::string storage_path; | 73 std::string storage_path; |
74 // User-Agent request header field. | 74 // User-Agent request header field. |
75 std::string user_agent; | 75 std::string user_agent; |
76 // App-provided list of servers that support QUIC. | 76 // App-provided list of servers that support QUIC. |
77 ScopedVector<QuicHint> quic_hints; | 77 ScopedVector<QuicHint> quic_hints; |
78 // Comma-separated list of QUIC connection options. | 78 // Experimental options encoded as a string in a JSON format containing |
79 std::string quic_connection_options; | 79 // experiments and their corresponding configuration options. The format |
| 80 // is a JSON object with the name of the experiment as the key, and the |
| 81 // configuration options as the value. An example: |
| 82 // {"experiment1": {"option1": "option_value1", "option2": "option_value2", |
| 83 // ...}, "experiment2: {"option3", "option_value3", ...}, ...} |
| 84 std::string experimental_options; |
80 // Enable Data Reduction Proxy with authentication key. | 85 // Enable Data Reduction Proxy with authentication key. |
81 std::string data_reduction_proxy_key; | 86 std::string data_reduction_proxy_key; |
82 std::string data_reduction_primary_proxy; | 87 std::string data_reduction_primary_proxy; |
83 std::string data_reduction_fallback_proxy; | 88 std::string data_reduction_fallback_proxy; |
84 std::string data_reduction_secure_proxy_check_url; | 89 std::string data_reduction_secure_proxy_check_url; |
85 | 90 |
86 // Certificate verifier for testing. | 91 // Certificate verifier for testing. |
87 scoped_ptr<net::CertVerifier> mock_cert_verifier; | 92 scoped_ptr<net::CertVerifier> mock_cert_verifier; |
88 | 93 |
89 private: | 94 private: |
90 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 95 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
91 }; | 96 }; |
92 | 97 |
93 } // namespace cronet | 98 } // namespace cronet |
94 | 99 |
95 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 100 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
OLD | NEW |