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

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

Issue 544223003: Add SetSupportsQuic method to explicitly specify server that supports QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 6 years, 3 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/HttpUrlRequest.java
diff --git a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java
index 6501d19c61b25f6a6f49069c82cc6e992e5cb0dd..7ff033d95e5a8350045733c112c4c98de057348f 100644
--- a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java
+++ b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java
@@ -102,6 +102,14 @@ public interface HttpUrlRequest {
boolean isCanceled();
/**
+ * 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. Must be called after
+ * onResponseStarted but before request is recycled.
+ */
+ String getNegotiatedProtocol();
+
+ /**
* Returns the entire response as a ByteBuffer.
*/
ByteBuffer getByteBuffer();

Powered by Google App Engine
This is Rietveld 408576698