| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.mojo.bindings; | 5 package org.chromium.mojo.bindings; |
| 6 | 6 |
| 7 import java.io.Closeable; | 7 import java.io.Closeable; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * A class which implements this interface can receive {@link Message} objects. | 10 * A class which implements this interface can receive {@link Message} objects. |
| 11 */ | 11 */ |
| 12 public interface MessageReceiver extends Closeable { | 12 public interface MessageReceiver extends Closeable { |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Receive a {@link MessageWithHeader}. The {@link MessageReceiver} is allow
ed to mutable the | 15 * Receive a {@link Message}. The {@link MessageReceiver} is allowed to muta
te the message. |
| 16 * message. Returns |true| if the message has been handled, |false| otherwis
e. | 16 * Returns |true| if the message has been handled, |false| otherwise. |
| 17 */ | 17 */ |
| 18 boolean accept(Message message); | 18 boolean accept(Message message); |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * @see java.io.Closeable#close() | 21 * @see java.io.Closeable#close() |
| 22 */ | 22 */ |
| 23 @Override | 23 @Override |
| 24 public void close(); | 24 public void close(); |
| 25 } | 25 } |
| OLD | NEW |