| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.net; | 5 package org.chromium.net; |
| 6 | 6 |
| 7 import android.support.annotation.IntDef; | 7 import android.support.annotation.IntDef; |
| 8 import android.support.annotation.Nullable; | 8 import android.support.annotation.Nullable; |
| 9 | 9 |
| 10 import java.lang.annotation.Retention; | 10 import java.lang.annotation.Retention; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 /** | 234 /** |
| 235 * Returns total bytes sent over the network transport layer, or {@code
null} if not | 235 * Returns total bytes sent over the network transport layer, or {@code
null} if not |
| 236 * collected. | 236 * collected. |
| 237 */ | 237 */ |
| 238 @Nullable | 238 @Nullable |
| 239 public abstract Long getSentBytesCount(); | 239 public abstract Long getSentBytesCount(); |
| 240 | 240 |
| 241 /** | 241 /** |
| 242 * Returns total bytes received over the network transport layer, or {@c
ode null} if not | 242 * Returns total bytes received over the network transport layer, or {@c
ode null} if not |
| 243 * collected. | 243 * collected. Number of bytes does not include any previous redirects. |
| 244 */ | 244 */ |
| 245 @Nullable | 245 @Nullable |
| 246 public abstract Long getReceivedBytesCount(); | 246 public abstract Long getReceivedBytesCount(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 private final String mUrl; | 249 private final String mUrl; |
| 250 private final Collection<Object> mAnnotations; | 250 private final Collection<Object> mAnnotations; |
| 251 private final Metrics mMetrics; | 251 private final Metrics mMetrics; |
| 252 | 252 |
| 253 /** @hide */ | 253 /** @hide */ |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 * If the request failed, returns the same {@link UrlRequestException} provi
ded to | 342 * If the request failed, returns the same {@link UrlRequestException} provi
ded to |
| 343 * {@link UrlRequest.Callback#onFailed}. | 343 * {@link UrlRequest.Callback#onFailed}. |
| 344 * | 344 * |
| 345 * @return the request's {@link UrlRequestException}, if the request failed | 345 * @return the request's {@link UrlRequestException}, if the request failed |
| 346 */ | 346 */ |
| 347 @Nullable | 347 @Nullable |
| 348 public UrlRequestException getException() { | 348 public UrlRequestException getException() { |
| 349 return mException; | 349 return mException; |
| 350 } | 350 } |
| 351 } | 351 } |
| OLD | NEW |