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

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

Issue 1557233003: Download doclava when building for Android and use to build cronet Javadocs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert back to Patch Set 10 Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 import android.support.annotation.IntDef; 7 import android.support.annotation.IntDef;
8 8
9 import java.lang.annotation.Retention; 9 import java.lang.annotation.Retention;
10 import java.lang.annotation.RetentionPolicy; 10 import java.lang.annotation.RetentionPolicy;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 throw new NullPointerException("Invalid header name."); 106 throw new NullPointerException("Invalid header name.");
107 } 107 }
108 if (value == null) { 108 if (value == null) {
109 throw new NullPointerException("Invalid header value."); 109 throw new NullPointerException("Invalid header value.");
110 } 110 }
111 mRequestHeaders.add( 111 mRequestHeaders.add(
112 new AbstractMap.SimpleImmutableEntry<String, String>(header, value)); 112 new AbstractMap.SimpleImmutableEntry<String, String>(header, value));
113 return this; 113 return this;
114 } 114 }
115 115
116 /** @deprecated not really deprecated but hidden. */ 116 /** @hide */
117 @IntDef({ 117 @IntDef({
118 STREAM_PRIORITY_IDLE, STREAM_PRIORITY_LOWEST, STREAM_PRIORITY_LO W, 118 STREAM_PRIORITY_IDLE, STREAM_PRIORITY_LOWEST, STREAM_PRIORITY_LO W,
119 STREAM_PRIORITY_MEDIUM, STREAM_PRIORITY_HIGHEST, 119 STREAM_PRIORITY_MEDIUM, STREAM_PRIORITY_HIGHEST,
120 }) 120 })
121 @Retention(RetentionPolicy.SOURCE) 121 @Retention(RetentionPolicy.SOURCE)
122 @SuppressWarnings("DepAnn")
123 public @interface StreamPriority {} 122 public @interface StreamPriority {}
124 123
125 /** 124 /**
126 * Lowest stream priority. Passed to {@link #setPriority}. 125 * Lowest stream priority. Passed to {@link #setPriority}.
127 */ 126 */
128 public static final int STREAM_PRIORITY_IDLE = 0; 127 public static final int STREAM_PRIORITY_IDLE = 0;
129 /** 128 /**
130 * Very low stream priority. Passed to {@link #setPriority}. 129 * Very low stream priority. Passed to {@link #setPriority}.
131 */ 130 */
132 public static final int STREAM_PRIORITY_LOWEST = 1; 131 public static final int STREAM_PRIORITY_LOWEST = 1;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 /** 397 /**
399 * Returns {@code true} if the stream was successfully started and is now 398 * Returns {@code true} if the stream was successfully started and is now
400 * done (succeeded, canceled, or failed). 399 * done (succeeded, canceled, or failed).
401 * 400 *
402 * @return {@code true} if the stream was successfully started and is now 401 * @return {@code true} if the stream was successfully started and is now
403 * done (completed, canceled, or failed), otherwise returns {@code f alse} 402 * done (completed, canceled, or failed), otherwise returns {@code f alse}
404 * to indicate stream is not yet started or is in progress. 403 * to indicate stream is not yet started or is in progress.
405 */ 404 */
406 public abstract boolean isDone(); 405 public abstract boolean isDone();
407 } 406 }
OLDNEW
« no previous file with comments | « components/cronet/android/api/package-list ('k') | components/cronet/android/api/src/org/chromium/net/CronetEngine.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698