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 <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/android/scoped_java_ref.h" |
15 #include "base/files/memory_mapped_file.h" | 16 #include "base/files/memory_mapped_file.h" |
16 #include "base/process/process.h" | 17 #include "base/process/process.h" |
17 #include "content/public/browser/file_descriptor_info.h" | 18 #include "content/public/browser/file_descriptor_info.h" |
18 #include "ui/gl/android/scoped_java_surface.h" | 19 #include "ui/gl/android/scoped_java_surface.h" |
19 | 20 |
20 namespace content { | 21 namespace content { |
21 | 22 |
22 typedef base::Callback<void(base::ProcessHandle)> StartChildProcessCallback; | 23 typedef base::Callback<void(base::ProcessHandle)> StartChildProcessCallback; |
23 // Starts a process as a child process spawned by the Android | 24 // Starts a process as a child process spawned by the Android |
24 // ActivityManager. | 25 // ActivityManager. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void DestroySurfaceTextureSurface(int surface_texture_id, int client_id); | 58 void DestroySurfaceTextureSurface(int surface_texture_id, int client_id); |
58 | 59 |
59 gl::ScopedJavaSurface GetSurfaceTextureSurface(int surface_texture_id, | 60 gl::ScopedJavaSurface GetSurfaceTextureSurface(int surface_texture_id, |
60 int client_id); | 61 int client_id); |
61 | 62 |
62 bool RegisterChildProcessLauncher(JNIEnv* env); | 63 bool RegisterChildProcessLauncher(JNIEnv* env); |
63 | 64 |
64 } // namespace content | 65 } // namespace content |
65 | 66 |
66 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ | 67 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ |
OLD | NEW |