Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(996)

Unified Diff: mojo/shell/android/run_android_application_function.h

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698