Index: mojo/shell/android/run_android_application_function.h |
diff --git a/mojo/shell/android/run_android_application_function.h b/mojo/shell/android/run_android_application_function.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ed174482d9a78d945abaab6132f328fe5f39c2c |
--- /dev/null |
+++ b/mojo/shell/android/run_android_application_function.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SHELL_ANDROID_RUN_ANDROID_APPLICATION_FUNCTION_H_ |
+#define SHELL_ANDROID_RUN_ANDROID_APPLICATION_FUNCTION_H_ |
+ |
+#include "base/android/jni_android.h" |
+#include "base/files/file_path.h" |
+ |
+namespace mojo { |
+namespace shell { |
+ |
+// Type of the function that we inject from the main .so of the Mojo shell to |
+// the helper libbootstrap.so. This function will set the thunks in the |
+// application .so and call into application MojoMain. Injecting the function |
+// from the main .so ensures that the thunks are set correctly. |
+ |
+typedef void (*RunAndroidApplicationFn)(JNIEnv* env, |
+ jobject j_context, |
+ const base::FilePath& app_path, |
+ jint j_handle); |
+ |
+} // namespace shell |
+} // namespace mojo |
+ |
+#endif // SHELL_ANDROID_RUN_ANDROID_APPLICATION_FUNCTION_H_ |