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 /** | 7 /** |
8 * A class which implements this interface can receive {@link Message} objects. | 8 * A class which implements this interface can receive {@link Message} objects. |
9 */ | 9 */ |
10 public interface MessageReceiver { | 10 public interface MessageReceiver { |
11 | 11 |
12 /** | 12 /** |
13 * Receive a {@link Message}. The {@link MessageReceiver} is allowed to muta
ble the message. | 13 * Receive a {@link MessageWithHeader}. The {@link MessageReceiver} is allow
ed to mutable the |
14 * Returns |true| if the message has been handled, |false| otherwise. | 14 * message. Returns |true| if the message has been handled, |false| otherwis
e. |
15 */ | 15 */ |
16 boolean accept(Message message); | 16 boolean accept(MessageWithHeader message); |
17 } | 17 } |
OLD | NEW |