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

Unified Diff: components/cronet/android/java/src/org/chromium/net/ExtendedResponseInfo.java

Issue 586143002: Initial implementation of Cronet Async API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 6 years, 1 month 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/java/src/org/chromium/net/ExtendedResponseInfo.java
diff --git a/components/cronet/android/java/src/org/chromium/net/ExtendedResponseInfo.java b/components/cronet/android/java/src/org/chromium/net/ExtendedResponseInfo.java
new file mode 100644
index 0000000000000000000000000000000000000000..481f3d1c9b2241b55ff918491c80ad367b0aca3f
--- /dev/null
+++ b/components/cronet/android/java/src/org/chromium/net/ExtendedResponseInfo.java
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.net;
+
+/**
+ * Contains additional information about a response. Sent to the embedder when
+ * request is completed.
+ */
+public interface ExtendedResponseInfo {
+ /**
+ * Returns basic response info.
+ */
+ ResponseInfo getResponseInfo();
+
+ /**
+ * Returns the total amount of data received from network after SSL
+ * decoding and proxy handling but before gzip and sdch decompression.
+ * Available on request completion.
+ */
+ long getTotalReceivedBytes();
+}

Powered by Google App Engine
This is Rietveld 408576698