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

Side by Side Diff: mojo/public/java/bindings/src/org/chromium/mojo/bindings/Router.java

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.mojo.bindings;
6
7 import org.chromium.mojo.system.MessagePipeHandle;
8
9 /**
10 * A {@link Router} will handle mojo message and forward those to a {@link Conne ctor}. It deals with
11 * parsing of headers and adding of request ids in order to be able to match a r esponse to a
12 * request.
13 */
14 public interface Router extends MessageReceiverWithResponder, HandleOwner<Messag ePipeHandle> {
15
16 /**
17 * Start listening for incoming messages.
18 */
19 public void start();
20
21 /**
22 * Set the {@link MessageReceiverWithResponder} that will deserialize and us e the message
23 * received from the pipe.
24 */
25 public void setIncomingMessageReceiver(MessageReceiverWithResponder incoming MessageReceiver);
26
27 /**
28 * Set the handle that will be notified of errors on the message pipe.
29 */
30 public void setErrorHandler(ConnectionErrorHandler errorHandler);
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698