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

Unified Diff: mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java

Issue 411913002: mojo: generate Proxies and Stubs for java bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update landmines Created 6 years, 4 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/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java
diff --git a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java
index d3cd59e27283073cb2231dcb87d59f09903394fa..d93409df542e60526d37e62e124f1d29d3050b3f 100644
--- a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java
+++ b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java
@@ -4,14 +4,22 @@
package org.chromium.mojo.bindings;
+import java.io.Closeable;
+
/**
* A class which implements this interface can receive {@link Message} objects.
*/
-public interface MessageReceiver {
+public interface MessageReceiver extends Closeable {
/**
* Receive a {@link MessageWithHeader}. The {@link MessageReceiver} is allowed to mutable the
* message. Returns |true| if the message has been handled, |false| otherwise.
*/
boolean accept(MessageWithHeader message);
+
+ /**
+ * @see java.io.Closeable#close()
+ */
+ @Override
+ public void close();
}

Powered by Google App Engine
This is Rietveld 408576698