| Index: components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java
|
| diff --git a/components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java b/components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c3cf61e0e9af392e4947f91b4f79e2c5180f71d3
|
| --- /dev/null
|
| +++ b/components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java
|
| @@ -0,0 +1,30 @@
|
| +// 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 BidirectionalStream} that exposes experimental features.
|
| + * Created using {@link ExperimentalBidirectionalStream.Builder}.
|
| + *
|
| + * {@hide} as it's a prototype
|
| + */
|
| +public abstract class ExperimentalBidirectionalStream extends BidirectionalStream {
|
| + /**
|
| + * Builder for {@link ExperimentalBidirectionalStream}s. Allows configuring stream before
|
| + * constructing it via {@link Builder#build}.
|
| + */
|
| + public abstract static class Builder extends BidirectionalStream.Builder {
|
| + /**
|
| + * 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);
|
| + }
|
| +}
|
|
|