OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ |
6 #define CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 // retuned if the process could not be created. | 22 // retuned if the process could not be created. |
23 void StartChildProcess( | 23 void StartChildProcess( |
24 const CommandLine::StringVector& argv, | 24 const CommandLine::StringVector& argv, |
25 const std::vector<FileDescriptorInfo>& files_to_register, | 25 const std::vector<FileDescriptorInfo>& files_to_register, |
26 const StartChildProcessCallback& callback); | 26 const StartChildProcessCallback& callback); |
27 | 27 |
28 // Stops a child process based on the handle returned form | 28 // Stops a child process based on the handle returned form |
29 // StartChildProcess. | 29 // StartChildProcess. |
30 void StopChildProcess(base::ProcessHandle handle); | 30 void StopChildProcess(base::ProcessHandle handle); |
31 | 31 |
| 32 bool IsChildProcessOomProtected(base::ProcessHandle handle); |
| 33 |
32 bool RegisterChildProcessLauncher(JNIEnv* env); | 34 bool RegisterChildProcessLauncher(JNIEnv* env); |
33 | 35 |
34 } // namespace content | 36 } // namespace content |
35 | 37 |
36 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ | 38 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ |
OLD | NEW |