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-separted list of QUIC connection options. | 78 |
pauljensen
2015/11/04 15:03:26
remove blank line to match style here?
xunjieli
2015/11/06 14:48:51
Done.
| |
79 std::string quic_connection_options; | 79 // Experimental options encoded as a string in a JSON format containing |
80 // experiments and their corresponding configuration options. The format | |
81 // is a JSON object with the name of the experiment as the key, and the | |
82 // configuration options as the value. The configuration options are | |
83 // encoded as a JSON object with option name as the key and option value | |
84 // as the value. An example: | |
pauljensen
2015/11/04 15:03:26
Can we remove the "The configuration options are..
xunjieli
2015/11/06 14:48:51
Done.
| |
85 // {"experiment1": {"option1": "option_value1", "option2": "option_value2", | |
86 // ...}, "experiment2: {"option3", "option_value3", ...}, ...} | |
87 std::string experimental_options; | |
88 | |
pauljensen
2015/11/04 15:03:26
remove blank line to match style here?
xunjieli
2015/11/06 14:48:51
Done.
| |
80 // Enable Data Reduction Proxy with authentication key. | 89 // Enable Data Reduction Proxy with authentication key. |
81 std::string data_reduction_proxy_key; | 90 std::string data_reduction_proxy_key; |
82 std::string data_reduction_primary_proxy; | 91 std::string data_reduction_primary_proxy; |
83 std::string data_reduction_fallback_proxy; | 92 std::string data_reduction_fallback_proxy; |
84 std::string data_reduction_secure_proxy_check_url; | 93 std::string data_reduction_secure_proxy_check_url; |
85 | 94 |
86 // Certificate verifier for testing. | 95 // Certificate verifier for testing. |
87 scoped_ptr<net::CertVerifier> mock_cert_verifier; | 96 scoped_ptr<net::CertVerifier> mock_cert_verifier; |
88 | 97 |
89 private: | 98 private: |
90 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 99 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
91 }; | 100 }; |
92 | 101 |
93 } // namespace cronet | 102 } // namespace cronet |
94 | 103 |
95 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 104 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
OLD | NEW |