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

Unified Diff: mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.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/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
diff --git a/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java b/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
index 308c8cc28a67c2b93d119c9d42b1ed93d30a3f9d..1087a592b546b72052ce49bc91fa1e836a123c1f 100644
--- a/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
+++ b/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
@@ -24,11 +24,19 @@ class DataPipeProducerHandleImpl extends HandleBase implements ProducerHandle {
/**
* @see HandleBase#HandleBase(HandleBase)
*/
- DataPipeProducerHandleImpl(UntypedHandleImpl handle) {
+ DataPipeProducerHandleImpl(HandleBase handle) {
super(handle);
}
/**
+ * @see org.chromium.mojo.system.DataPipe.ProducerHandle#pass()
+ */
+ @Override
+ public ProducerHandle pass() {
+ return new DataPipeProducerHandleImpl(this);
+ }
+
+ /**
* @see ProducerHandle#writeData(ByteBuffer, WriteFlags)
*/
@Override

Powered by Google App Engine
This is Rietveld 408576698