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/runner/android/android_handler.h" | 5 #include "mojo/runner/android/android_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/android/context_utils.h" | 10 #include "base/android/context_utils.h" |
11 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/scoped_native_library.h" | 15 #include "base/scoped_native_library.h" |
16 #include "jni/AndroidHandler_jni.h" | 16 #include "jni/AndroidHandler_jni.h" |
17 #include "mojo/application/public/cpp/application_impl.h" | |
18 #include "mojo/common/data_pipe_utils.h" | 17 #include "mojo/common/data_pipe_utils.h" |
19 #include "mojo/public/c/system/main.h" | 18 #include "mojo/public/c/system/main.h" |
20 #include "mojo/runner/android/run_android_application_function.h" | 19 #include "mojo/runner/android/run_android_application_function.h" |
21 #include "mojo/runner/host/native_application_support.h" | 20 #include "mojo/runner/host/native_application_support.h" |
| 21 #include "mojo/shell/public/cpp/application_impl.h" |
22 #include "mojo/util/filename_util.h" | 22 #include "mojo/util/filename_util.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 using base::android::AttachCurrentThread; | 25 using base::android::AttachCurrentThread; |
26 using base::android::ScopedJavaLocalRef; | 26 using base::android::ScopedJavaLocalRef; |
27 using base::android::ConvertJavaStringToUTF8; | 27 using base::android::ConvertJavaStringToUTF8; |
28 using base::android::ConvertUTF8ToJavaString; | 28 using base::android::ConvertUTF8ToJavaString; |
29 using base::android::GetApplicationContext; | 29 using base::android::GetApplicationContext; |
30 | 30 |
31 namespace mojo { | 31 namespace mojo { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 connection->AddService(&content_handler_factory_); | 175 connection->AddService(&content_handler_factory_); |
176 return true; | 176 return true; |
177 } | 177 } |
178 | 178 |
179 bool RegisterAndroidHandlerJni(JNIEnv* env) { | 179 bool RegisterAndroidHandlerJni(JNIEnv* env) { |
180 return RegisterNativesImpl(env); | 180 return RegisterNativesImpl(env); |
181 } | 181 } |
182 | 182 |
183 } // namespace runner | 183 } // namespace runner |
184 } // namespace mojo | 184 } // namespace mojo |
OLD | NEW |