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

Side by Side 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: Added QUIC hints to HttpUrlRequestFactoryConfig. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net; 5 package org.chromium.net;
6 6
7 import java.io.IOException; 7 import java.io.IOException;
8 import java.nio.ByteBuffer; 8 import java.nio.ByteBuffer;
9 import java.nio.channels.ReadableByteChannel; 9 import java.nio.channels.ReadableByteChannel;
10 import java.util.List; 10 import java.util.List;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 * Cancel the request in progress. 95 * Cancel the request in progress.
96 */ 96 */
97 void cancel(); 97 void cancel();
98 98
99 /** 99 /**
100 * Returns {@code true} if the request has been canceled. 100 * Returns {@code true} if the request has been canceled.
101 */ 101 */
102 boolean isCanceled(); 102 boolean isCanceled();
103 103
104 /** 104 /**
105 * Returns protocol (e.g. "quic/1+spdy/3") negotiated with server.
mmenke 2014/09/09 14:53:35 Maybe add "Returns empty string if no protocol was
Charles 2014/09/09 17:03:56 Must be called after onResponseStarted?
mef 2014/09/10 16:48:18 Done.
mef 2014/09/10 16:48:18 Done.
106 */
107 String getNegotiatedProtocol();
108
109 /**
105 * Returns the entire response as a ByteBuffer. 110 * Returns the entire response as a ByteBuffer.
106 */ 111 */
107 ByteBuffer getByteBuffer(); 112 ByteBuffer getByteBuffer();
108 113
109 /** 114 /**
110 * Returns the entire response as a byte array. 115 * Returns the entire response as a byte array.
111 */ 116 */
112 byte[] getResponseAsBytes(); 117 byte[] getResponseAsBytes();
113 118
114 /** 119 /**
(...skipping 27 matching lines...) Expand all
142 * HttpUrlConnection. 147 * HttpUrlConnection.
143 */ 148 */
144 Map<String, List<String>> getAllHeaders(); 149 Map<String, List<String>> getAllHeaders();
145 150
146 /** 151 /**
147 * Returns the exception that occurred while executing the request of null 152 * Returns the exception that occurred while executing the request of null
148 * if the request was successful. 153 * if the request was successful.
149 */ 154 */
150 IOException getException(); 155 IOException getException();
151 } 156 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698