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

Unified 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: Addressed comments. Use SchemeIsCryptographic Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index e8b4ac38762c15e6e6a06ef0014451f8ab3cbf49..26b95f87b23110270eba0bbfdb626f958cf94c38 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -211,6 +211,8 @@ class IOThread : public content::BrowserThreadDelegate {
Optional<bool> enable_npn;
+ Optional<bool> enable_brotli;
+
Optional<bool> enable_quic;
Optional<bool> enable_quic_for_proxies;
Optional<bool> enable_quic_port_selection;
@@ -351,6 +353,10 @@ class IOThread : public content::BrowserThreadDelegate {
return NULL;
#endif
}
+
+ // Returns true if Brotli Content-Encoding should be enabled.
+ static bool ShouldEnableBrotli(const base::CommandLine& command_line);
+
// Configures QUIC options in |globals| based on the flags in |command_line|
// as well as the QUIC field trial group and parameters. Must be called
// before ConfigureSpdyGlobals.

Powered by Google App Engine
This is Rietveld 408576698