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 #include "sky/shell/java_service_provider.h" |
| 6 |
| 7 #include "jni/JavaServiceProvider_jni.h" |
| 8 |
| 9 namespace sky { |
| 10 namespace shell { |
| 11 |
| 12 bool RegisterJavaServiceProvider(JNIEnv* env) { |
| 13 return RegisterNativesImpl(env); |
| 14 } |
| 15 |
| 16 mojo::ScopedMessagePipeHandle CreateJavaServiceProvider() { |
| 17 JNIEnv* env = base::android::AttachCurrentThread(); |
| 18 return mojo::ScopedMessagePipeHandle( |
| 19 mojo::MessagePipeHandle(Java_JavaServiceProvider_create(env))); |
| 20 } |
| 21 |
| 22 } // namespace shell |
| 23 } // namespace sky |
OLD | NEW |