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

Unified Diff: net/url_request/url_request_context.h

Issue 1922403002: Move bool enable_brotli from HttpNetworkSession::Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittest fix Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context.h
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index 045905a072a445db0bde4b4140b3962b1bb1070c..7aa3351d6d457fa755de8442e4fc75972bc9a9dc 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -235,6 +235,10 @@ class NET_EXPORT URLRequestContext
has_known_mismatched_cookie_store_ = true;
}
+ void set_enable_brotli(bool enable_brotli) { enable_brotli_ = enable_brotli; }
+
+ bool enable_brotli() const { return enable_brotli_; }
+
private:
// ---------------------------------------------------------------------------
// Important: When adding any new members below, consider whether they need to
@@ -271,6 +275,9 @@ class NET_EXPORT URLRequestContext
std::unique_ptr<std::set<const URLRequest*>> url_requests_;
bool has_known_mismatched_cookie_store_;
+ // Enables Brotli Content-Encoding support.
+ bool enable_brotli_;
+
DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
};
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698