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

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

Issue 268353013: Upstream changes to HttpUrlRequest for querying response headers and closing ReadableByteChannel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comment. Created 6 years, 7 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/HttpUrlRequestListener.java
diff --git a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java
index 01e1e829d80a9a10f124b2972347647e00f05406..a922319ae3babdd651117beb905f5c8466ccc766 100644
--- a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java
+++ b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java
@@ -9,8 +9,10 @@ package org.chromium.net;
*/
public interface HttpUrlRequestListener {
/**
- * A callback invoked when the first chunk of the response has arrived.
- * The listener can only call request getContentType and getContentLength.
+ * A callback invoked when the first chunk of the response has arrived and
+ * response headers have been read. The listener can only call request
+ * getHeader, getContentType and getContentLength. This method will always
+ * be called before {@code onRequestComplete}.
*/
void onResponseStarted(HttpUrlRequest request);

Powered by Google App Engine
This is Rietveld 408576698