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

Unified Diff: components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java

Issue 1085903002: Enable Sdch in Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 5 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
Index: components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java
diff --git a/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java b/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java
index 810ce12c030ec62c0250b60db4d05597c797c9e5..32b442ab51b02be94cfaf5cb632963db29ac3462 100644
--- a/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java
+++ b/components/cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.java
@@ -15,14 +15,14 @@ import java.io.File;
* UrlRequestContext.
*/
public class UrlRequestContextConfig {
-
/**
- * Default config enables SPDY, QUIC, in memory http cache.
+ * Default config enables SPDY, disables QUIC, SDCH and http cache.
*/
public UrlRequestContextConfig() {
enableLegacyMode(false);
enableQUIC(false);
enableSPDY(true);
+ enableSDCH(false);
enableHttpCache(HttpCache.DISABLED, 0);
}
@@ -102,6 +102,13 @@ public class UrlRequestContextConfig {
}
/**
+ * Boolean, enable SDCH compression if true.
+ */
+ public UrlRequestContextConfig enableSDCH(boolean value) {
+ return putBoolean(UrlRequestContextConfigList.ENABLE_SDCH, value);
+ }
+
+ /**
* Enumeration, disable or enable cache in memory or on disk.
*/
public enum HttpCache {

Powered by Google App Engine
This is Rietveld 408576698