OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 package org.chromium.net; |
| 5 |
| 6 /** |
| 7 * {@link UrlRequest} that exposes experimental feature. |
| 8 * {@hide} since this class exposes experimental features that should be hidden. |
| 9 */ |
| 10 public abstract class ExperimentalUrlRequest extends UrlRequest { |
| 11 /** |
| 12 * Builder for building {@link UrlRequest}. |
| 13 * {@hide} since this class exposes experimental features that should be hid
den. |
| 14 */ |
| 15 public abstract static class Builder extends UrlRequest.Builder { |
| 16 /** |
| 17 * Disables connection migration for the request if enabled for |
| 18 * the session. |
| 19 * @return the builder to facilitate chaining. |
| 20 */ |
| 21 public abstract Builder disableConnectionMigration(); |
| 22 |
| 23 /** |
| 24 * Associates the annotation object with this request. May add more than
one. |
| 25 * Passed through to a {@link RequestFinishedInfo.Listener}, |
| 26 * see {@link RequestFinishedInfo#getAnnotations}. |
| 27 * |
| 28 * @param annotation an object to pass on to the {@link RequestFinishedI
nfo.Listener} with a |
| 29 * {@link RequestFinishedInfo}. |
| 30 * @return the builder to facilitate chaining. |
| 31 */ |
| 32 public abstract Builder addRequestAnnotation(Object annotation); |
| 33 } |
| 34 } |
OLD | NEW |