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

Side by Side Diff: chrome/browser/io_thread.h

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add brotli reference link Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 Optional<bool> enable_spdy_ping_based_connection_checking; 191 Optional<bool> enable_spdy_ping_based_connection_checking;
192 Optional<net::NextProto> spdy_default_protocol; 192 Optional<net::NextProto> spdy_default_protocol;
193 net::NextProtoVector next_protos; 193 net::NextProtoVector next_protos;
194 Optional<std::string> trusted_spdy_proxy; 194 Optional<std::string> trusted_spdy_proxy;
195 std::set<net::HostPortPair> forced_spdy_exclusions; 195 std::set<net::HostPortPair> forced_spdy_exclusions;
196 Optional<bool> use_alternative_services; 196 Optional<bool> use_alternative_services;
197 Optional<double> alternative_service_probability_threshold; 197 Optional<double> alternative_service_probability_threshold;
198 198
199 Optional<bool> enable_npn; 199 Optional<bool> enable_npn;
200 200
201 Optional<bool> enable_brotli;
202
201 Optional<bool> enable_quic; 203 Optional<bool> enable_quic;
202 Optional<bool> enable_quic_for_proxies; 204 Optional<bool> enable_quic_for_proxies;
203 Optional<bool> enable_quic_port_selection; 205 Optional<bool> enable_quic_port_selection;
204 Optional<bool> quic_always_require_handshake_confirmation; 206 Optional<bool> quic_always_require_handshake_confirmation;
205 Optional<bool> quic_disable_connection_pooling; 207 Optional<bool> quic_disable_connection_pooling;
206 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 208 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
207 Optional<bool> quic_enable_connection_racing; 209 Optional<bool> quic_enable_connection_racing;
208 Optional<bool> quic_enable_non_blocking_io; 210 Optional<bool> quic_enable_non_blocking_io;
209 Optional<bool> quic_disable_disk_cache; 211 Optional<bool> quic_disable_disk_cache;
210 Optional<bool> quic_prefer_aes; 212 Optional<bool> quic_prefer_aes;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // well as the QUIC field trial group. 336 // well as the QUIC field trial group.
335 void ConfigureQuic(const base::CommandLine& command_line); 337 void ConfigureQuic(const base::CommandLine& command_line);
336 338
337 extensions::EventRouterForwarder* extension_event_router_forwarder() { 339 extensions::EventRouterForwarder* extension_event_router_forwarder() {
338 #if defined(ENABLE_EXTENSIONS) 340 #if defined(ENABLE_EXTENSIONS)
339 return extension_event_router_forwarder_; 341 return extension_event_router_forwarder_;
340 #else 342 #else
341 return NULL; 343 return NULL;
342 #endif 344 #endif
343 } 345 }
346
347 // Returns true if Brotli Content-Encoding should be enabled.
348 static bool ShouldEnableBrotli(const base::CommandLine& command_line);
349
344 // Configures QUIC options in |globals| based on the flags in |command_line| 350 // Configures QUIC options in |globals| based on the flags in |command_line|
345 // as well as the QUIC field trial group and parameters. Must be called 351 // as well as the QUIC field trial group and parameters. Must be called
346 // before ConfigureSpdyGlobals. 352 // before ConfigureSpdyGlobals.
347 static void ConfigureQuicGlobals( 353 static void ConfigureQuicGlobals(
348 const base::CommandLine& command_line, 354 const base::CommandLine& command_line,
349 base::StringPiece quic_trial_group, 355 base::StringPiece quic_trial_group,
350 const VariationParameters& quic_trial_params, 356 const VariationParameters& quic_trial_params,
351 bool quic_allowed_by_policy, 357 bool quic_allowed_by_policy,
352 Globals* globals); 358 Globals* globals);
353 359
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 #endif // defined(OS_ANDROID) 548 #endif // defined(OS_ANDROID)
543 549
544 const base::TimeTicks creation_time_; 550 const base::TimeTicks creation_time_;
545 551
546 base::WeakPtrFactory<IOThread> weak_factory_; 552 base::WeakPtrFactory<IOThread> weak_factory_;
547 553
548 DISALLOW_COPY_AND_ASSIGN(IOThread); 554 DISALLOW_COPY_AND_ASSIGN(IOThread);
549 }; 555 };
550 556
551 #endif // CHROME_BROWSER_IO_THREAD_H_ 557 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698