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

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

Issue 2794823003: [Cronet] Better document Experimental Cronet classes (Closed)
Patch Set: transition->moved Created 3 years, 8 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
« no previous file with comments | « no previous file | components/cronet/android/api/src/org/chromium/net/ExperimentalCronetEngine.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net; 5 package org.chromium.net;
6 6
7 /** 7 /**
8 * {@link BidirectionalStream} that exposes experimental features. 8 * {@link BidirectionalStream} that exposes experimental features. To obtain an
9 * Created using {@link Builder}. Every instance of {@link BidirectionalStream} can be casted 9 * instance of this class, cast a {@code BidirectionalStream} to this type. Ever y
10 * to an instance of this class. 10 * instance of {@code BidirectionalStream} can be cast to an instance of this cl ass.
11 * Instances of this class are not meant for general use, but instead only
12 * to access experimental features. Note that experimental features may be
kapishnikov 2017/04/04 19:57:40 If an experimental feature is moved to Bidirection
13 * transitioned to supported features (and moved from
14 * {@link ExperimentalBidirectionalStream} to {@code BidirectionalStream}) or ma y be
15 * unsupported, in which case calling them may have no effect.
11 * 16 *
12 * {@hide prototype} 17 * {@hide prototype}
13 */ 18 */
14 public abstract class ExperimentalBidirectionalStream extends BidirectionalStrea m { 19 public abstract class ExperimentalBidirectionalStream extends BidirectionalStrea m {
15 /** 20 /**
16 * Builder for {@link ExperimentalBidirectionalStream}s. Allows configuring stream before 21 * {@link BidirectionalStream#Builder} that exposes experimental features. T o obtain an
17 * constructing it via {@link Builder#build}. Created by 22 * instance of this class, cast a {@code BidirectionalStream.Builder} to thi s type. Every
18 * {@link ExperimentalCronetEngine#newBidirectionalStreamBuilder}. A referen ce to this class 23 * instance of {@code BidirectionalStream.Builder} can be cast to an instanc e of this class.
19 * can also be obtained through downcasting of {@link BidirectionalStream.Bu ilder}. 24 * Instances of this class are not meant for general use, but instead only
25 * to access experimental features. Note that experimental features may be
26 * transitioned to supported features (and moved from
27 * {@link ExperimentalBidirectionalStream#Builder} to {@code BidirectionalSt ream.Builder}) or
28 * may be unsupported, in which case calling them may have no effect.
20 */ 29 */
21 public abstract static class Builder extends BidirectionalStream.Builder { 30 public abstract static class Builder extends BidirectionalStream.Builder {
22 /** 31 /**
23 * Associates the annotation object with this request. May add more than one. 32 * Associates the annotation object with this request. May add more than one.
24 * Passed through to a {@link RequestFinishedInfo.Listener}, 33 * Passed through to a {@link RequestFinishedInfo.Listener},
25 * see {@link RequestFinishedInfo#getAnnotations}. 34 * see {@link RequestFinishedInfo#getAnnotations}.
26 * 35 *
27 * @param annotation an object to pass on to the {@link RequestFinishedI nfo.Listener} with a 36 * @param annotation an object to pass on to the {@link RequestFinishedI nfo.Listener} with a
28 * {@link RequestFinishedInfo}. 37 * {@link RequestFinishedInfo}.
29 * @return the builder to facilitate chaining. 38 * @return the builder to facilitate chaining.
(...skipping 15 matching lines...) Expand all
45 public abstract Builder setPriority(int priority); 54 public abstract Builder setPriority(int priority);
46 55
47 @Override 56 @Override
48 public abstract Builder delayRequestHeadersUntilFirstFlush( 57 public abstract Builder delayRequestHeadersUntilFirstFlush(
49 boolean delayRequestHeadersUntilFirstFlush); 58 boolean delayRequestHeadersUntilFirstFlush);
50 59
51 @Override 60 @Override
52 public abstract ExperimentalBidirectionalStream build(); 61 public abstract ExperimentalBidirectionalStream build();
53 } 62 }
54 } 63 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/android/api/src/org/chromium/net/ExperimentalCronetEngine.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698