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 |
| 5 package org.chromium.net; |
| 6 |
| 7 /** |
| 8 * {@link BidirectionalStream} that exposes experimental features. |
| 9 * Created using {@link ExperimentalBidirectionalStream.Builder}. |
| 10 */ |
| 11 public abstract class ExperimentalBidirectionalStream extends BidirectionalStrea
m { |
| 12 /** |
| 13 * Builder for {@link ExperimentalBidirectionalStream}s. Allows configuring
stream before |
| 14 * constructing it via {@link Builder#build}. |
| 15 */ |
| 16 public abstract static class Builder extends BidirectionalStream.Builder { |
| 17 /** |
| 18 * Associates the annotation object with this request. May add more than
one. |
| 19 * Passed through to a {@link RequestFinishedInfo.Listener}, |
| 20 * see {@link RequestFinishedInfo#getAnnotations}. |
| 21 * |
| 22 * @param annotation an object to pass on to the {@link RequestFinishedI
nfo.Listener} with a |
| 23 * {@link RequestFinishedInfo}. |
| 24 * @return the builder to facilitate chaining. |
| 25 */ |
| 26 public abstract Builder addRequestAnnotation(Object annotation); |
| 27 } |
| 28 } |
OLD | NEW |