OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.os.Bundle; | 7 import android.os.Bundle; |
8 | 8 |
9 import org.chromium.content.common.FileDescriptorInfo; | 9 import org.chromium.content.common.FileDescriptorInfo; |
10 import org.chromium.content.common.IChildProcessCallback; | 10 import org.chromium.content.common.IChildProcessCallback; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 /** | 66 /** |
67 * @return the connection pid, or 0 if not yet connected | 67 * @return the connection pid, or 0 if not yet connected |
68 */ | 68 */ |
69 int getPid(); | 69 int getPid(); |
70 | 70 |
71 /** | 71 /** |
72 * Starts a connection to an IChildProcessService. This must be followed by
a call to | 72 * Starts a connection to an IChildProcessService. This must be followed by
a call to |
73 * setupConnection() to setup the connection parameters. start() and setupCo
nnection() are | 73 * setupConnection() to setup the connection parameters. start() and setupCo
nnection() are |
74 * separate to allow to pass whatever parameters are available in start(), a
nd complete the | 74 * separate to allow to pass whatever parameters are available in start(), a
nd complete the |
75 * remainder later while reducing the connection setup latency. | 75 * remainder later while reducing the connection setup latency. |
76 * @param commandLine (optional) command line for the child process. If omit
ted, then | |
77 * the command line parameters must instead be passed to
setupConnection(). | |
78 * @param startCallback (optional) callback when the child process starts or
fails to start. | 76 * @param startCallback (optional) callback when the child process starts or
fails to start. |
79 */ | 77 */ |
80 void start(String[] commandLine, StartCallback startCallback); | 78 void start(StartCallback startCallback); |
81 | 79 |
82 /** | 80 /** |
83 * Setups the connection after it was started with start(). | 81 * Setups the connection after it was started with start(). |
84 * @param commandLine (optional) will be ignored if the command line was alr
eady sent in start() | 82 * @param commandLine (optional) will be ignored if the command line was alr
eady sent in start() |
85 * @param filesToBeMapped a list of file descriptors that should be register
ed | 83 * @param filesToBeMapped a list of file descriptors that should be register
ed |
86 * @param processCallback used for status updates regarding this process con
nection | 84 * @param processCallback used for status updates regarding this process con
nection |
87 * @param connectionCallback will be called exactly once after the connectio
n is set up or the | 85 * @param connectionCallback will be called exactly once after the connectio
n is set up or the |
88 * setup fails | 86 * setup fails |
89 */ | 87 */ |
90 void setupConnection( | 88 void setupConnection( |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void addModerateBinding(); | 143 void addModerateBinding(); |
146 | 144 |
147 /** | 145 /** |
148 * Called when the service is no longer in moderate use of the consumer. | 146 * Called when the service is no longer in moderate use of the consumer. |
149 */ | 147 */ |
150 void removeModerateBinding(); | 148 void removeModerateBinding(); |
151 | 149 |
152 /** @return true iff the moderate oom binding is currently bound. */ | 150 /** @return true iff the moderate oom binding is currently bound. */ |
153 boolean isModerateBindingBound(); | 151 boolean isModerateBindingBound(); |
154 } | 152 } |
OLD | NEW |