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

Side by Side Diff: components/cronet/android/api/src/org/chromium/net/RequestFinishedInfo.java

Issue 2351793003: Implement timing metrics for UrlRequest (Closed)
Patch Set: Small cleanups Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/cronet/android/cronet_url_request_adapter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/android/cronet_url_request_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698