OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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.application; | 5 package org.chromium.mojo.application; |
6 | 6 |
7 import org.chromium.mojo.bindings.Interface; | 7 import org.chromium.mojo.bindings.Interface; |
8 import org.chromium.mojo.bindings.Interface.Proxy; | 8 import org.chromium.mojo.bindings.Interface.Proxy; |
9 import org.chromium.mojo.bindings.InterfaceRequest; | 9 import org.chromium.mojo.bindings.InterfaceRequest; |
10 import org.chromium.mojo.system.Core; | 10 import org.chromium.mojo.system.Core; |
(...skipping 20 matching lines...) Expand all Loading... |
31 Pair<ServiceProvider.Proxy, InterfaceRequest<ServiceProvider>> providerR
equest = | 31 Pair<ServiceProvider.Proxy, InterfaceRequest<ServiceProvider>> providerR
equest = |
32 ServiceProvider.MANAGER.getInterfaceRequest(core); | 32 ServiceProvider.MANAGER.getInterfaceRequest(core); |
33 try (ServiceProvider.Proxy provider = providerRequest.first) { | 33 try (ServiceProvider.Proxy provider = providerRequest.first) { |
34 shell.connectToApplication(application, providerRequest.second, null
); | 34 shell.connectToApplication(application, providerRequest.second, null
); |
35 Pair<P, InterfaceRequest<I>> serviceRequest = manager.getInterfaceRe
quest(core); | 35 Pair<P, InterfaceRequest<I>> serviceRequest = manager.getInterfaceRe
quest(core); |
36 provider.connectToService(manager.getName(), serviceRequest.second.p
assHandle()); | 36 provider.connectToService(manager.getName(), serviceRequest.second.p
assHandle()); |
37 return serviceRequest.first; | 37 return serviceRequest.first; |
38 } | 38 } |
39 } | 39 } |
40 } | 40 } |
OLD | NEW |