| 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 #include "mojo/shell/android/android_handler.h" | 5 #include "mojo/runner/android/android_handler.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/scoped_native_library.h" | 11 #include "base/scoped_native_library.h" |
| 12 #include "jni/AndroidHandler_jni.h" | 12 #include "jni/AndroidHandler_jni.h" |
| 13 #include "mojo/common/data_pipe_utils.h" | 13 #include "mojo/common/data_pipe_utils.h" |
| 14 #include "mojo/public/c/system/main.h" | 14 #include "mojo/public/c/system/main.h" |
| 15 #include "mojo/public/cpp/application/application_impl.h" | 15 #include "mojo/public/cpp/application/application_impl.h" |
| 16 #include "mojo/shell/android/run_android_application_function.h" | 16 #include "mojo/runner/android/run_android_application_function.h" |
| 17 #include "mojo/shell/native_application_support.h" | 17 #include "mojo/runner/native_application_support.h" |
| 18 | 18 |
| 19 using base::android::AttachCurrentThread; | 19 using base::android::AttachCurrentThread; |
| 20 using base::android::ScopedJavaLocalRef; | 20 using base::android::ScopedJavaLocalRef; |
| 21 using base::android::ConvertJavaStringToUTF8; | 21 using base::android::ConvertJavaStringToUTF8; |
| 22 using base::android::ConvertUTF8ToJavaString; | 22 using base::android::ConvertUTF8ToJavaString; |
| 23 using base::android::GetApplicationContext; | 23 using base::android::GetApplicationContext; |
| 24 | 24 |
| 25 namespace mojo { | 25 namespace mojo { |
| 26 namespace shell { | 26 namespace shell { |
| 27 | 27 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 connection->AddService(&content_handler_factory_); | 102 connection->AddService(&content_handler_factory_); |
| 103 return true; | 103 return true; |
| 104 } | 104 } |
| 105 | 105 |
| 106 bool RegisterAndroidHandlerJni(JNIEnv* env) { | 106 bool RegisterAndroidHandlerJni(JNIEnv* env) { |
| 107 return RegisterNativesImpl(env); | 107 return RegisterNativesImpl(env); |
| 108 } | 108 } |
| 109 | 109 |
| 110 } // namespace shell | 110 } // namespace shell |
| 111 } // namespace mojo | 111 } // namespace mojo |
| OLD | NEW |