Index: content/public/android/java/org/chromium/content/app/ContentMain.java |
diff --git a/content/public/android/java/org/chromium/content/app/ContentMain.java b/content/public/android/java/org/chromium/content/app/ContentMain.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5f2236cc22457150a7ffab17b4521b755930efc7 |
--- /dev/null |
+++ b/content/public/android/java/org/chromium/content/app/ContentMain.java |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2012 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. |
+ |
+package org.chromium.content.app; |
+ |
+import android.content.Context; |
+ |
+/** |
+ * This class is used to initialize all types of process. It corresponds to |
+ * content/public/app/content_main.h which is not used in Android as it has |
+ * the different initialization process. |
+ * |
+ * TODO (michaelbai): Refactorying the BrowserProcessMain.java and the |
+ * SandboxedProcessService.java to start ContentMain, and run the process |
+ * specific initialization code in ContentMainRunner::Initialize. |
+ * |
+ **/ |
+public class ContentMain { |
+ /** |
+ * Start the ContentMainRunner in native side. |
+ **/ |
+ public static int Start(Context context) { |
+ return nativeStart(context); |
+ } |
+ |
+ private static native int nativeStart(Context context); |
+}; |