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

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

Issue 860893002: [Cronet] Allow UrlRequest bypass cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 10 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/UrlRequest.java
diff --git a/components/cronet/android/java/src/org/chromium/net/UrlRequest.java b/components/cronet/android/java/src/org/chromium/net/UrlRequest.java
index b78dd6313f41db201860790ca8a0e44833cef430..54b72a195286a99ee0c9776613e7b6acd2171654 100644
--- a/components/cronet/android/java/src/org/chromium/net/UrlRequest.java
+++ b/components/cronet/android/java/src/org/chromium/net/UrlRequest.java
@@ -91,6 +91,12 @@ public interface UrlRequest {
public void resume();
/**
+ * Disables cache for the request. If context is not set up to use cache,
+ * this call has no effect.
+ */
+ public void disableCache();
+
+ /**
* Note: There are deliberately no accessors for the results of the request
* here. Having none removes any ambiguity over when they are populated,
* particularly in the redirect case.

Powered by Google App Engine
This is Rietveld 408576698