Index: components/cronet/android/java/src/org/chromium/net/ResponseInfo.java |
diff --git a/components/cronet/android/java/src/org/chromium/net/ResponseInfo.java b/components/cronet/android/java/src/org/chromium/net/ResponseInfo.java |
index e6679d97ec2f80d0db38f0931e7324041cf9147e..e464daa9c571750ef17a02bae0322a8f33390042 100644 |
--- a/components/cronet/android/java/src/org/chromium/net/ResponseInfo.java |
+++ b/components/cronet/android/java/src/org/chromium/net/ResponseInfo.java |
@@ -4,7 +4,6 @@ |
package org.chromium.net; |
-import java.net.URL; |
import java.util.List; |
import java.util.Map; |
@@ -12,19 +11,19 @@ import java.util.Map; |
* Contains basic information about a response. Sent to the embedder whenever |
* headers are received. |
*/ |
-public abstract interface ResponseInfo { |
+public interface ResponseInfo { |
/** |
* Return the url the response is for (Not the original URL - after |
* redirects, it's the new URL). |
*/ |
- URL getUrl(); |
+ String getUrl(); |
/** |
* |
* @return the url chain, including all redirects. The originally |
* requested URL is first. |
*/ |
- URL[] getUrlChain(); |
+ String[] getUrlChain(); |
/** |
* Returns the HTTP status code. |
@@ -45,14 +44,9 @@ public abstract interface ResponseInfo { |
boolean wasCached(); |
/** |
- * |
- * @return |
- */ |
- boolean wasFetchedOverSPDY(); |
- |
- /** |
- * |
- * @return |
+ * Returns protocol (e.g. "quic/1+spdy/3") negotiated with server. Returns |
+ * empty string if no protocol was negotiated, or the protocol is not known. |
+ * Returns empty when using plain http or https. |
mmenke
2014/10/06 18:28:45
Add a TODO about figuring out what this returns in
mef
2014/10/07 00:45:18
Done.
|
*/ |
- boolean wasFetchedOverQUIC(); |
+ String getNegotiatedProtocol(); |
}; |