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

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

Issue 1868203002: Revert of 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: 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 /** @hide */ 116 /** @deprecated not really deprecated but hidden. */
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")
122 public @interface StreamPriority {} 123 public @interface StreamPriority {}
123 124
124 /** 125 /**
125 * Lowest stream priority. Passed to {@link #setPriority}. 126 * Lowest stream priority. Passed to {@link #setPriority}.
126 */ 127 */
127 public static final int STREAM_PRIORITY_IDLE = 0; 128 public static final int STREAM_PRIORITY_IDLE = 0;
128 /** 129 /**
129 * Very low stream priority. Passed to {@link #setPriority}. 130 * Very low stream priority. Passed to {@link #setPriority}.
130 */ 131 */
131 public static final int STREAM_PRIORITY_LOWEST = 1; 132 public static final int STREAM_PRIORITY_LOWEST = 1;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 /** 398 /**
398 * Returns {@code true} if the stream was successfully started and is now 399 * Returns {@code true} if the stream was successfully started and is now
399 * done (succeeded, canceled, or failed). 400 * done (succeeded, canceled, or failed).
400 * 401 *
401 * @return {@code true} if the stream was successfully started and is now 402 * @return {@code true} if the stream was successfully started and is now
402 * done (completed, canceled, or failed), otherwise returns {@code f alse} 403 * done (completed, canceled, or failed), otherwise returns {@code f alse}
403 * to indicate stream is not yet started or is in progress. 404 * to indicate stream is not yet started or is in progress.
404 */ 405 */
405 public abstract boolean isDone(); 406 public abstract boolean isDone();
406 } 407 }
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