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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ChildSpawnData.java

Issue 2865173002: Removing the unused child process ID parameter in ChildProcessLauncher. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.os.IBinder; 8 import android.os.IBinder;
9 9
10 import org.chromium.base.process_launcher.ChildProcessCreationParams; 10 import org.chromium.base.process_launcher.ChildProcessCreationParams;
11 import org.chromium.base.process_launcher.FileDescriptorInfo; 11 import org.chromium.base.process_launcher.FileDescriptorInfo;
12 import org.chromium.content.browser.ChildProcessLauncher.LaunchCallback; 12 import org.chromium.content.browser.ChildProcessLauncher.LaunchCallback;
13 13
14 /** Contains the information necessary to start a child process. */ 14 /** Contains the information necessary to start a child process. */
15 class ChildSpawnData { 15 class ChildSpawnData {
16 private final Context mContext; 16 private final Context mContext;
17 private final String[] mCommandLine; 17 private final String[] mCommandLine;
18 private final int mChildProcessId;
19 private final FileDescriptorInfo[] mFilesToBeMapped; 18 private final FileDescriptorInfo[] mFilesToBeMapped;
20 private final LaunchCallback mLaunchCallback; 19 private final LaunchCallback mLaunchCallback;
21 private final IBinder mChildProcessCallback; 20 private final IBinder mChildProcessCallback;
22 private final boolean mInSandbox; 21 private final boolean mInSandbox;
23 private final boolean mAlwaysInForeground; 22 private final boolean mAlwaysInForeground;
24 private final ChildProcessCreationParams mCreationParams; 23 private final ChildProcessCreationParams mCreationParams;
25 24
26 ChildSpawnData(Context context, String[] commandLine, int childProcessId, 25 ChildSpawnData(Context context, String[] commandLine, FileDescriptorInfo[] f ilesToBeMapped,
27 FileDescriptorInfo[] filesToBeMapped, LaunchCallback launchCallback, 26 LaunchCallback launchCallback, IBinder childProcessCallback, boolean inSandbox,
28 IBinder childProcessCallback, boolean inSandbox, boolean alwaysInFor eground, 27 boolean alwaysInForeground, ChildProcessCreationParams creationParam s) {
29 ChildProcessCreationParams creationParams) {
30 mContext = context; 28 mContext = context;
31 mCommandLine = commandLine; 29 mCommandLine = commandLine;
32 mChildProcessId = childProcessId;
33 mFilesToBeMapped = filesToBeMapped; 30 mFilesToBeMapped = filesToBeMapped;
34 mLaunchCallback = launchCallback; 31 mLaunchCallback = launchCallback;
35 mChildProcessCallback = childProcessCallback; 32 mChildProcessCallback = childProcessCallback;
36 mInSandbox = inSandbox; 33 mInSandbox = inSandbox;
37 mAlwaysInForeground = alwaysInForeground; 34 mAlwaysInForeground = alwaysInForeground;
38 mCreationParams = creationParams; 35 mCreationParams = creationParams;
39 } 36 }
40 37
41 Context getContext() { 38 Context getContext() {
42 return mContext; 39 return mContext;
43 } 40 }
44 41
45 String[] getCommandLine() { 42 String[] getCommandLine() {
46 return mCommandLine; 43 return mCommandLine;
47 } 44 }
48 45
49 int getChildProcessId() {
50 return mChildProcessId;
51 }
52
53 FileDescriptorInfo[] getFilesToBeMapped() { 46 FileDescriptorInfo[] getFilesToBeMapped() {
54 return mFilesToBeMapped; 47 return mFilesToBeMapped;
55 } 48 }
56 49
57 LaunchCallback getLaunchCallback() { 50 LaunchCallback getLaunchCallback() {
58 return mLaunchCallback; 51 return mLaunchCallback;
59 } 52 }
60 53
61 IBinder getChildProcessCallback() { 54 IBinder getChildProcessCallback() {
62 return mChildProcessCallback; 55 return mChildProcessCallback;
63 } 56 }
64 57
65 boolean isInSandbox() { 58 boolean isInSandbox() {
66 return mInSandbox; 59 return mInSandbox;
67 } 60 }
68 61
69 boolean isAlwaysInForeground() { 62 boolean isAlwaysInForeground() {
70 return mAlwaysInForeground; 63 return mAlwaysInForeground;
71 } 64 }
72 65
73 ChildProcessCreationParams getCreationParams() { 66 ChildProcessCreationParams getCreationParams() {
74 return mCreationParams; 67 return mCreationParams;
75 } 68 }
76 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698