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

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: Rebase to CronetEngine builders. 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 6d53f528f4bc14875de6917520fa87cbfeee43cf..1e2e1e57d68c5297b9b69cd1d15fa7a7fd2f787e 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
@@ -397,31 +397,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