Commit 90f8fa20 authored by Paul Jensen's avatar Paul Jensen Committed by Commit Bot

[Cronet] Add back prior UrlResponseInfoImpl()

This constructor is deprecated but apparently called by many Cronet embedders.
Proguard should remove this in production code.

R=mef@chromium.org

Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester
Change-Id: I1e5d76a8c60980f06896c4e7531ba6a702f5942f
Reviewed-on: https://chromium-review.googlesource.com/976261Reviewed-by: default avatarMisha Efimov <mef@chromium.org>
Commit-Queue: Paul Jensen <pauljensen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545180}
parent ba6d2018
...@@ -95,6 +95,17 @@ public final class UrlResponseInfoImpl extends UrlResponseInfo { ...@@ -95,6 +95,17 @@ public final class UrlResponseInfoImpl extends UrlResponseInfo {
mReceivedByteCount = new AtomicLong(receivedByteCount); mReceivedByteCount = new AtomicLong(receivedByteCount);
} }
/**
* Constructor for backwards compatibility. See main constructor above for more info.
*/
@Deprecated
public UrlResponseInfoImpl(List<String> urlChain, int httpStatusCode, String httpStatusText,
List<Map.Entry<String, String>> allHeadersList, boolean wasCached,
String negotiatedProtocol, String proxyServer) {
this(urlChain, httpStatusCode, httpStatusText, allHeadersList, wasCached,
negotiatedProtocol, proxyServer, 0);
}
@Override @Override
public String getUrl() { public String getUrl() {
return mResponseInfoUrlChain.get(mResponseInfoUrlChain.size() - 1); return mResponseInfoUrlChain.get(mResponseInfoUrlChain.size() - 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment