Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / components / cronet / android / java / src / org / chromium / net / ExtendedResponseInfo.java
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.net;
6
7 /**
8  * Contains additional information about a response. Sent to the embedder when
9  * request is completed.
10  */
11 public interface ExtendedResponseInfo {
12     /**
13      * Returns basic response info.
14      */
15     ResponseInfo getResponseInfo();
16
17     /**
18      * Returns the total amount of data received from network after SSL
19      * decoding and proxy handling but before gzip and sdch decompression.
20      * Available on request completion.
21      */
22     long getTotalReceivedBytes();
23 }