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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentView.java

Issue 11926028: Remove ContentViewCore.enableMultiProcess etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove R Created 7 years, 10 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/src/org/chromium/content/browser/ContentView.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentView.java b/content/public/android/java/src/org/chromium/content/browser/ContentView.java
index c79eae0d820c473af879df45895889a02f24fbdf..28a8826825c2703418cd10601f4829ea0ac1b653 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentView.java
@@ -42,54 +42,6 @@ public class ContentView extends FrameLayout implements ContentViewCore.Internal
// Used for Chrome.
public static final int PERSONALITY_CHROME = ContentViewCore.PERSONALITY_CHROME;
- /**
- * Automatically decide the number of renderer processes to use based on device memory class.
- * */
- public static final int MAX_RENDERERS_AUTOMATIC = AndroidBrowserProcess.MAX_RENDERERS_AUTOMATIC;
- /**
- * Use single-process mode that runs the renderer on a separate thread in the main application.
- */
- public static final int MAX_RENDERERS_SINGLE_PROCESS =
- AndroidBrowserProcess.MAX_RENDERERS_SINGLE_PROCESS;
- /**
- * Cap on the maximum number of renderer processes that can be requested.
- */
- public static final int MAX_RENDERERS_LIMIT = AndroidBrowserProcess.MAX_RENDERERS_LIMIT;
-
- /**
- * Enable multi-process ContentView. This should be called by the application before
- * constructing any ContentView instances. If enabled, ContentView will run renderers in
- * separate processes up to the number of processes specified by maxRenderProcesses. If this is
- * not called then the default is to run the renderer in the main application on a separate
- * thread.
- *
- * @param context Context used to obtain the application context.
- * @param maxRendererProcesses Limit on the number of renderers to use. Each tab runs in its own
- * process until the maximum number of processes is reached. The special value of
- * MAX_RENDERERS_SINGLE_PROCESS requests single-process mode where the renderer will run in the
- * application process in a separate thread. If the special value MAX_RENDERERS_AUTOMATIC is
- * used then the number of renderers will be determined based on the device memory class. The
- * maximum number of allowed renderers is capped by MAX_RENDERERS_LIMIT.
- * @return Whether the process actually needed to be initialized (false if already running).
- */
- public static boolean enableMultiProcess(Context context, int maxRendererProcesses)
- throws ProcessInitException {
- return ContentViewCore.enableMultiProcess(context, maxRendererProcesses);
- }
-
- /**
- * Initialize the process as the platform browser. This must be called before accessing
- * ContentView in order to treat this as a Chromium browser process.
- *
- * @param context Context used to obtain the application context.
- * @param maxRendererProcesses Same as ContentView.enableMultiProcess()
- * @return Whether the process actually needed to be initialized (false if already running).
- */
- public static boolean initChromiumBrowserProcess(Context context, int maxRendererProcesses)
- throws ProcessInitException {
- return ContentViewCore.initChromiumBrowserProcess(context, maxRendererProcesses);
- }
-
private ContentViewCore mContentViewCore;
/**

Powered by Google App Engine
This is Rietveld 408576698