Chromium Code Reviews| Index: components/cronet/android/api/src/org/chromium/net/UrlResponseInfo.java |
| diff --git a/components/cronet/android/api/src/org/chromium/net/UrlResponseInfo.java b/components/cronet/android/api/src/org/chromium/net/UrlResponseInfo.java |
| index d1f26b8948d3053f5895a444283b74b761b980a1..393872247d67ef5c3c53bb754c3df2e60755a22c 100644 |
| --- a/components/cronet/android/api/src/org/chromium/net/UrlResponseInfo.java |
| +++ b/components/cronet/android/api/src/org/chromium/net/UrlResponseInfo.java |
| @@ -76,7 +76,20 @@ public final class UrlResponseInfo { |
| } |
| } |
| - UrlResponseInfo(List<String> urlChain, int httpStatusCode, String httpStatusText, |
| + /** |
| + * Creates a {@link UrlResponseInfo} object. Provied to facilitate testing. |
|
mef
2015/10/30 15:24:19
Provied -> Provided or Public?
pauljensen
2015/10/30 15:29:19
Done.
|
| + * |
| + * @param urlChain the URL chain. The first entry is the origianlly requested URL; |
|
mef
2015/10/30 15:24:19
origianlly
pauljensen
2015/10/30 15:29:19
Done.
|
| + * the following entries are redirects followed. |
| + * @param httpStatusCode the HTTP status code. |
| + * @param httpStatusText the HTTP status text of the status line. |
| + * @param allHeadersList list of response header field and value pairs. |
| + * @param wasCached {@code true} if the response came from the cache, {@code false} |
| + * otherwise. |
| + * @param negotiatedProtocol the protocol negotiated with the server. |
| + * @param proxyServer the proxy server that was used for the request. |
| + */ |
| + public UrlResponseInfo(List<String> urlChain, int httpStatusCode, String httpStatusText, |
| List<Map.Entry<String, String>> allHeadersList, boolean wasCached, |
| String negotiatedProtocol, String proxyServer) { |
| mResponseInfoUrlChain = Collections.unmodifiableList(urlChain); |