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. |