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

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

Issue 2339223002: Cronet API Refactoring (Closed)
Patch Set: Rebased onto Charles change + Paul's Comments Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java
diff --git a/components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java b/components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java
new file mode 100644
index 0000000000000000000000000000000000000000..c3cf61e0e9af392e4947f91b4f79e2c5180f71d3
--- /dev/null
+++ b/components/cronet/android/api/src/org/chromium/net/ExperimentalBidirectionalStream.java
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.net;
+
+/**
+ * {@link BidirectionalStream} that exposes experimental features.
+ * Created using {@link ExperimentalBidirectionalStream.Builder}.
+ *
+ * {@hide} as it's a prototype
+ */
+public abstract class ExperimentalBidirectionalStream extends BidirectionalStream {
+ /**
+ * Builder for {@link ExperimentalBidirectionalStream}s. Allows configuring stream before
+ * constructing it via {@link Builder#build}.
+ */
+ public abstract static class Builder extends BidirectionalStream.Builder {
+ /**
+ * Associates the annotation object with this request. May add more than one.
+ * Passed through to a {@link RequestFinishedInfo.Listener},
+ * see {@link RequestFinishedInfo#getAnnotations}.
+ *
+ * @param annotation an object to pass on to the {@link RequestFinishedInfo.Listener} with a
+ * {@link RequestFinishedInfo}.
+ * @return the builder to facilitate chaining.
+ */
+ public abstract Builder addRequestAnnotation(Object annotation);
+ }
pauljensen 2016/09/26 14:51:21 So I've an idea: We were wondering how to deal wit
kapishnikov 2016/09/27 18:38:25 Done. Same for ExperimentalCronetEngine & Experime
+}

Powered by Google App Engine
This is Rietveld 408576698