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(); |
} |