1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.mojo_shell_apk;
7 import android.content.Context;
9 import org.chromium.base.JNINamespace;
12 * A placeholder class to call native functions.
15 public class MojoMain {
17 * A guard flag for calling nativeInit() only once.
19 private static boolean sInitialized = false;
22 * Initializes the native system.
24 public static void ensureInitialized(Context context) {
32 * Starts the specified application in the specified context.
34 public static void start(final String appUrl) {
39 * Initializes the native system. This API should be called only once per process.
41 private static native void nativeInit(Context context);
42 private static native void nativeStart(String appUrl);