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

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

Issue 2339223002: Cronet API Refactoring (Closed)
Patch Set: Rebase 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
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698