| Index: components/cronet/android/api/src/org/chromium/net/ExperimentalUrlRequest.java
|
| diff --git a/components/cronet/android/api/src/org/chromium/net/ExperimentalUrlRequest.java b/components/cronet/android/api/src/org/chromium/net/ExperimentalUrlRequest.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..66f70e4f13b82ae8253c8c04dc050eb3e0f9c98e
|
| --- /dev/null
|
| +++ b/components/cronet/android/api/src/org/chromium/net/ExperimentalUrlRequest.java
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2016 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;
|
| +
|
| +/**
|
| + * {@link UrlRequest} that exposes experimental feature.
|
| + * {@hide} since this class exposes experimental features that should be hidden.
|
| + */
|
| +public abstract class ExperimentalUrlRequest extends UrlRequest {
|
| + /**
|
| + * Builder for building {@link UrlRequest}.
|
| + */
|
| + public abstract static class Builder extends UrlRequest.Builder {
|
| + /**
|
| + * Disables connection migration for the request if enabled for
|
| + * the session.
|
| + * @return the builder to facilitate chaining.
|
| + */
|
| + public abstract Builder disableConnectionMigration();
|
| +
|
| + /**
|
| + * Associates the annotation object with this request. May add more than one.
|
| + * Passed through to a {@link RequestFinishedInfo.Listener},
|
| + * see {@link RequestFinishedInfo#getAnnotations}.
|
| + *
|
| + * @param annotation an object to pass on to the {@link RequestFinishedInfo.Listener} with a
|
| + * {@link RequestFinishedInfo}.
|
| + * @return the builder to facilitate chaining.
|
| + */
|
| + public abstract Builder addRequestAnnotation(Object annotation);
|
| + }
|
| +}
|
|
|