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

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

Issue 2049843004: Upstream: Renderers are running in WebAPKs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a check. Created 4 years, 6 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/ChildProcessCreationParams.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java
index 14858481abd4182dd4ff15f164ea36893ebf0396..cc90b0dc2ce8991de21e9a13be94f4b8cd828a76 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java
@@ -4,6 +4,7 @@
package org.chromium.content.browser;
+import android.app.Service;
import android.content.Intent;
import org.chromium.base.library_loader.LibraryProcessType;
@@ -18,6 +19,7 @@ public class ChildProcessCreationParams {
private final String mPackageName;
private final int mExtraBindFlags;
private final int mLibraryProcessType;
+ private final Class<? extends Service> mServiceClass;
private static final String EXTRA_LIBRARY_PROCESS_TYPE =
"org.chromium.content.common.child_service_params.library_process_type";
@@ -33,13 +35,20 @@ public class ChildProcessCreationParams {
public ChildProcessCreationParams(String packageName, int extraBindFlags,
int libraryProcessType) {
+ this(packageName, extraBindFlags, libraryProcessType, null);
+ }
+
+ public ChildProcessCreationParams(String packageName, int extraBindFlags,
+ int libraryProcessType, Class<? extends Service> serviceClass) {
mPackageName = packageName;
mExtraBindFlags = extraBindFlags;
mLibraryProcessType = libraryProcessType;
+ mServiceClass = serviceClass;
}
public ChildProcessCreationParams copy() {
- return new ChildProcessCreationParams(mPackageName, mExtraBindFlags, mLibraryProcessType);
+ return new ChildProcessCreationParams(mPackageName, mExtraBindFlags, mLibraryProcessType,
+ mServiceClass);
}
public String getPackageName() {
@@ -54,6 +63,10 @@ public class ChildProcessCreationParams {
return mLibraryProcessType;
}
+ public Class<? extends Service> getServiceClass() {
+ return mServiceClass;
+ }
+
/**
* Adds required extra flags to the given child service binding flags and returns them.
* Does not modify the state of the ChildProcessCreationParams instance.

Powered by Google App Engine
This is Rietveld 408576698