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

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: address Andrei's comments 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 * as they are backed by the same implementation and hence perform identically.
12 * Instances of this class are not meant for general use, but instead only
13 * to access experimental features. Experimental features may be deprecated in t he
14 * future. Use at your own risk.
11 * 15 *
12 * {@hide prototype} 16 * {@hide prototype}
13 */ 17 */
14 public abstract class ExperimentalBidirectionalStream extends BidirectionalStrea m { 18 public abstract class ExperimentalBidirectionalStream extends BidirectionalStrea m {
15 /** 19 /**
16 * Builder for {@link ExperimentalBidirectionalStream}s. Allows configuring stream before 20 * {@link BidirectionalStream#Builder} that exposes experimental features. T o obtain an
17 * constructing it via {@link Builder#build}. Created by 21 * instance of this class, cast a {@code BidirectionalStream.Builder} to thi s type. Every
18 * {@link ExperimentalCronetEngine#newBidirectionalStreamBuilder}. A referen ce to this class 22 * 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}. 23 * as they are backed by the same implementation and hence perform identical ly.
24 * Instances of this class are not meant for general use, but instead only
25 * to access experimental features. Experimental features may be deprecated in the
26 * future. Use at your own risk.
20 */ 27 */
21 public abstract static class Builder extends BidirectionalStream.Builder { 28 public abstract static class Builder extends BidirectionalStream.Builder {
22 /** 29 /**
23 * Associates the annotation object with this request. May add more than one. 30 * Associates the annotation object with this request. May add more than one.
24 * Passed through to a {@link RequestFinishedInfo.Listener}, 31 * Passed through to a {@link RequestFinishedInfo.Listener},
25 * see {@link RequestFinishedInfo#getAnnotations}. 32 * see {@link RequestFinishedInfo#getAnnotations}.
26 * 33 *
27 * @param annotation an object to pass on to the {@link RequestFinishedI nfo.Listener} with a 34 * @param annotation an object to pass on to the {@link RequestFinishedI nfo.Listener} with a
28 * {@link RequestFinishedInfo}. 35 * {@link RequestFinishedInfo}.
29 * @return the builder to facilitate chaining. 36 * @return the builder to facilitate chaining.
(...skipping 15 matching lines...) Expand all
45 public abstract Builder setPriority(int priority); 52 public abstract Builder setPriority(int priority);
46 53
47 @Override 54 @Override
48 public abstract Builder delayRequestHeadersUntilFirstFlush( 55 public abstract Builder delayRequestHeadersUntilFirstFlush(
49 boolean delayRequestHeadersUntilFirstFlush); 56 boolean delayRequestHeadersUntilFirstFlush);
50 57
51 @Override 58 @Override
52 public abstract ExperimentalBidirectionalStream build(); 59 public abstract ExperimentalBidirectionalStream build();
53 } 60 }
54 } 61 }
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