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

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

Issue 1085903002: Enable Sdch in Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 5 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 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 /** 108 /**
109 * Returns protocol (e.g. "quic/1+spdy/3") negotiated with server. Returns 109 * Returns protocol (e.g. "quic/1+spdy/3") negotiated with server. Returns
110 * empty string if no protocol was negotiated, or the protocol is not known. 110 * empty string if no protocol was negotiated, or the protocol is not known.
111 * Returns empty when using plain http or https. Must be called after 111 * Returns empty when using plain http or https. Must be called after
112 * onResponseStarted but before request is recycled. 112 * onResponseStarted but before request is recycled.
113 */ 113 */
114 String getNegotiatedProtocol(); 114 String getNegotiatedProtocol();
115 115
116 /** 116 /**
117 * Returns whether the response is serviced from the cache.
118 */
119 boolean wasCached();
120
121 /**
117 * Returns the entire response as a ByteBuffer. 122 * Returns the entire response as a ByteBuffer.
118 */ 123 */
119 ByteBuffer getByteBuffer(); 124 ByteBuffer getByteBuffer();
120 125
121 /** 126 /**
122 * Returns the entire response as a byte array. 127 * Returns the entire response as a byte array.
123 */ 128 */
124 byte[] getResponseAsBytes(); 129 byte[] getResponseAsBytes();
125 130
126 /** 131 /**
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 * HttpUrlConnection. 166 * HttpUrlConnection.
162 */ 167 */
163 Map<String, List<String>> getAllHeaders(); 168 Map<String, List<String>> getAllHeaders();
164 169
165 /** 170 /**
166 * Returns the exception that occurred while executing the request of null 171 * Returns the exception that occurred while executing the request of null
167 * if the request was successful. 172 * if the request was successful.
168 */ 173 */
169 IOException getException(); 174 IOException getException();
170 } 175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698