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

Unified Diff: content/public/android/java/org/chromium/content/app/ContentMain.java

Issue 10444121: Added android_browser_process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 7 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: 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..a97d12b3163b685ed20bd7285e20e18e28f0104f
--- /dev/null
+++ b/content/public/android/java/org/chromium/content/app/ContentMain.java
@@ -0,0 +1,36 @@
+// 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 {
+ /**
+ * Initialize application context in native side.
+ **/
+ public static void initApplicationContext(Context context) {
+ nativeInitApplicationContext(context);
+ }
+
+ /**
+ * Start the ContentMainRunner in native side.
+ **/
+ public static int start() {
+ return nativeStart();
+ }
+
+ private static native void nativeInitApplicationContext(Context context);
+ private static native int nativeStart();
+};

Powered by Google App Engine
This is Rietveld 408576698