Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: components/cronet/url_request_context_config.h

Issue 2805053005: [Cronet] Enable Brotli (Closed)
Patch Set: restore 0x03 in test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/cronet/tools/cr_cronet.py ('k') | components/cronet/url_request_context_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 URLRequestContextConfig( 81 URLRequestContextConfig(
82 // Enable QUIC. 82 // Enable QUIC.
83 bool enable_quic, 83 bool enable_quic,
84 // QUIC User Agent ID. 84 // QUIC User Agent ID.
85 const std::string& quic_user_agent_id, 85 const std::string& quic_user_agent_id,
86 // Enable SPDY. 86 // Enable SPDY.
87 bool enable_spdy, 87 bool enable_spdy,
88 // Enable SDCH. 88 // Enable SDCH.
89 bool enable_sdch, 89 bool enable_sdch,
90 // Enable Brotli.
91 bool enable_brotli,
90 // Type of http cache. 92 // Type of http cache.
91 HttpCacheType http_cache, 93 HttpCacheType http_cache,
92 // Max size of http cache in bytes. 94 // Max size of http cache in bytes.
93 int http_cache_max_size, 95 int http_cache_max_size,
94 // Disable caching for HTTP responses. Other information may be stored in 96 // Disable caching for HTTP responses. Other information may be stored in
95 // the cache. 97 // the cache.
96 bool load_disable_cache, 98 bool load_disable_cache,
97 // Storage path for http cache and cookie storage. 99 // Storage path for http cache and cookie storage.
98 const std::string& storage_path, 100 const std::string& storage_path,
99 // User-Agent request header field. 101 // User-Agent request header field.
(...skipping 25 matching lines...) Expand all
125 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner); 127 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner);
126 128
127 // Enable QUIC. 129 // Enable QUIC.
128 const bool enable_quic; 130 const bool enable_quic;
129 // QUIC User Agent ID. 131 // QUIC User Agent ID.
130 const std::string quic_user_agent_id; 132 const std::string quic_user_agent_id;
131 // Enable SPDY. 133 // Enable SPDY.
132 const bool enable_spdy; 134 const bool enable_spdy;
133 // Enable SDCH. 135 // Enable SDCH.
134 const bool enable_sdch; 136 const bool enable_sdch;
137 // Enable Brotli.
138 const bool enable_brotli;
135 // Type of http cache. 139 // Type of http cache.
136 const HttpCacheType http_cache; 140 const HttpCacheType http_cache;
137 // Max size of http cache in bytes. 141 // Max size of http cache in bytes.
138 const int http_cache_max_size; 142 const int http_cache_max_size;
139 // Disable caching for HTTP responses. Other information may be stored in 143 // Disable caching for HTTP responses. Other information may be stored in
140 // the cache. 144 // the cache.
141 const bool load_disable_cache; 145 const bool load_disable_cache;
142 // Storage path for http cache and cookie storage. 146 // Storage path for http cache and cookie storage.
143 const std::string storage_path; 147 const std::string storage_path;
144 // User-Agent request header field. 148 // User-Agent request header field.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 std::unique_ptr<URLRequestContextConfig> Build(); 198 std::unique_ptr<URLRequestContextConfig> Build();
195 199
196 // Enable QUIC. 200 // Enable QUIC.
197 bool enable_quic = false; 201 bool enable_quic = false;
198 // QUIC User Agent ID. 202 // QUIC User Agent ID.
199 std::string quic_user_agent_id = ""; 203 std::string quic_user_agent_id = "";
200 // Enable SPDY. 204 // Enable SPDY.
201 bool enable_spdy = true; 205 bool enable_spdy = true;
202 // Enable SDCH. 206 // Enable SDCH.
203 bool enable_sdch = false; 207 bool enable_sdch = false;
208 // Enable Brotli.
209 bool enable_brotli = false;
204 // Type of http cache. 210 // Type of http cache.
205 URLRequestContextConfig::HttpCacheType http_cache = 211 URLRequestContextConfig::HttpCacheType http_cache =
206 URLRequestContextConfig::DISABLED; 212 URLRequestContextConfig::DISABLED;
207 // Max size of http cache in bytes. 213 // Max size of http cache in bytes.
208 int http_cache_max_size = 0; 214 int http_cache_max_size = 0;
209 // Disable caching for HTTP responses. Other information may be stored in 215 // Disable caching for HTTP responses. Other information may be stored in
210 // the cache. 216 // the cache.
211 bool load_disable_cache = false; 217 bool load_disable_cache = false;
212 // Storage path for http cache and cookie storage. 218 // Storage path for http cache and cookie storage.
213 std::string storage_path = ""; 219 std::string storage_path = "";
(...skipping 24 matching lines...) Expand all
238 // Data to populate CertVerifierCache. 244 // Data to populate CertVerifierCache.
239 std::string cert_verifier_data = ""; 245 std::string cert_verifier_data = "";
240 246
241 private: 247 private:
242 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfigBuilder); 248 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfigBuilder);
243 }; 249 };
244 250
245 } // namespace cronet 251 } // namespace cronet
246 252
247 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ 253 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_
OLDNEW
« no previous file with comments | « components/cronet/tools/cr_cronet.py ('k') | components/cronet/url_request_context_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698