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" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/platform_file.h" | |
13 #include "base/process/process.h" | 12 #include "base/process/process.h" |
14 #include "content/public/browser/file_descriptor_info.h" | 13 #include "content/public/browser/file_descriptor_info.h" |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 | 16 |
18 typedef base::Callback<void(base::ProcessHandle)> StartChildProcessCallback; | 17 typedef base::Callback<void(base::ProcessHandle)> StartChildProcessCallback; |
19 // Starts a process as a child process spawned by the Android | 18 // Starts a process as a child process spawned by the Android |
20 // ActivityManager. | 19 // ActivityManager. |
21 // The created process handle is returned to the |callback| on success, 0 is | 20 // The created process handle is returned to the |callback| on success, 0 is |
22 // retuned if the process could not be created. | 21 // retuned if the process could not be created. |
(...skipping 21 matching lines...) Expand all Loading... |
44 jobject j_surface_texture); | 43 jobject j_surface_texture); |
45 | 44 |
46 void UnregisterChildProcessSurfaceTexture(int surface_texture_id, | 45 void UnregisterChildProcessSurfaceTexture(int surface_texture_id, |
47 int child_process_id); | 46 int child_process_id); |
48 | 47 |
49 bool RegisterChildProcessLauncher(JNIEnv* env); | 48 bool RegisterChildProcessLauncher(JNIEnv* env); |
50 | 49 |
51 } // namespace content | 50 } // namespace content |
52 | 51 |
53 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ | 52 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ |
OLD | NEW |