| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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.application; | |
| 6 | |
| 7 import org.chromium.mojo.bindings.Interface; | |
| 8 import org.chromium.mojo.bindings.InterfaceRequest; | |
| 9 | |
| 10 /** | |
| 11 * ServiceFactoryBinder holds the necessary information to bind a service interf
ace to a message | |
| 12 * pipe. | |
| 13 * | |
| 14 * @param <T> A mojo service interface. | |
| 15 */ | |
| 16 public interface ServiceFactoryBinder<T extends Interface> { | |
| 17 /** | |
| 18 * Binds an instance of the interface to the given request. | |
| 19 * | |
| 20 * @param request The request to bind to. | |
| 21 */ | |
| 22 public void bind(InterfaceRequest<T> request); | |
| 23 | |
| 24 /** | |
| 25 * Returns the name of the service interface being implemented. | |
| 26 */ | |
| 27 public String getInterfaceName(); | |
| 28 } | |
| OLD | NEW |