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

Unified Diff: mojo/public/java/src/org/chromium/mojo/system/DataPipe.java

Issue 325953006: Add pass operation on handles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix findbugs issue Created 6 years, 6 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: mojo/public/java/src/org/chromium/mojo/system/DataPipe.java
diff --git a/mojo/public/java/src/org/chromium/mojo/system/DataPipe.java b/mojo/public/java/src/org/chromium/mojo/system/DataPipe.java
index 729612a0acf2cfccf942dda817b9f73a7133a396..4cd74e15685acc9835da711fcec46aeb081057e3 100644
--- a/mojo/public/java/src/org/chromium/mojo/system/DataPipe.java
+++ b/mojo/public/java/src/org/chromium/mojo/system/DataPipe.java
@@ -213,6 +213,12 @@ public interface DataPipe {
public static interface ProducerHandle extends Handle {
/**
+ * @see org.chromium.mojo.system.Handle#pass()
+ */
+ @Override
+ public ProducerHandle pass();
+
+ /**
* Writes the given data to the data pipe producer. |elements| points to data; the buffer
* must be a direct ByteBuffer and the limit should be a multiple of the data pipe's element
* size. If |allOrNone| is set in |flags|, either all the data will be written or none is.
@@ -272,6 +278,12 @@ public interface DataPipe {
public static interface ConsumerHandle extends Handle {
/**
+ * @see org.chromium.mojo.system.Handle#pass()
+ */
+ @Override
+ public ConsumerHandle pass();
+
+ /**
* Discards data on the data pie consumer. This method discards up to |numBytes| (which
* again be a multiple of the element size) bytes of data, returning the amount actually
* discarded. if |flags| has |allOrNone|, it will either discard exactly |numBytes| bytes of

Powered by Google App Engine
This is Rietveld 408576698