summaryrefslogtreecommitdiffstats
path: root/mojo/shell/android/run_android_application_function.h
blob: 3ed174482d9a78d945abaab6132f328fe5f39c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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_