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

Unified Diff: components/cronet/android/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java

Issue 1359343005: Update ResponseInfo to UrlResponseInfo with API review comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update README.md Created 5 years, 2 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/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java
diff --git a/components/cronet/android/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java b/components/cronet/android/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java
index c7ad7364e7659f6f62d611e83e6e4dfab805f219..7758ef2153172fe540874ba9da141effef5a7d22 100644
--- a/components/cronet/android/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java
+++ b/components/cronet/android/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java
@@ -390,31 +390,32 @@ public class CronetPerfTestActivity extends Activity {
}
@Override
- public void onResponseStarted(UrlRequest request, ResponseInfo info) {
+ public void onResponseStarted(UrlRequest request, UrlResponseInfo info) {
mBuffer.clear();
request.readNew(mBuffer);
}
@Override
public void onReceivedRedirect(
- UrlRequest request, ResponseInfo info, String newLocationUrl) {
+ UrlRequest request, UrlResponseInfo info, String newLocationUrl) {
request.followRedirect();
}
@Override
public void onReadCompleted(
- UrlRequest request, ResponseInfo info, ByteBuffer byteBuffer) {
+ UrlRequest request, UrlResponseInfo info, ByteBuffer byteBuffer) {
mBuffer.clear();
request.readNew(mBuffer);
}
@Override
- public void onSucceeded(UrlRequest request, ExtendedResponseInfo info) {
+ public void onSucceeded(UrlRequest request, UrlResponseInfo info) {
mCompletionCallback.run();
}
@Override
- public void onFailed(UrlRequest request, ResponseInfo info, UrlRequestException e) {
+ public void onFailed(
+ UrlRequest request, UrlResponseInfo info, UrlRequestException e) {
System.out.println("Async request failed with " + e);
mFailed = true;
}

Powered by Google App Engine
This is Rietveld 408576698