| 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> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const StartChildProcessCallback& callback); | 33 const StartChildProcessCallback& callback); |
| 34 | 34 |
| 35 // Stops a child process based on the handle returned form | 35 // Stops a child process based on the handle returned form |
| 36 // StartChildProcess. | 36 // StartChildProcess. |
| 37 void StopChildProcess(base::ProcessHandle handle); | 37 void StopChildProcess(base::ProcessHandle handle); |
| 38 | 38 |
| 39 bool IsChildProcessOomProtected(base::ProcessHandle handle); | 39 bool IsChildProcessOomProtected(base::ProcessHandle handle); |
| 40 | 40 |
| 41 void SetChildProcessInForeground(base::ProcessHandle handle, | 41 void SetChildProcessInForeground(base::ProcessHandle handle, |
| 42 bool in_foreground); | 42 bool in_foreground); |
| 43 | |
| 44 void CreateSurfaceTextureSurface(int surface_texture_id, | |
| 45 int client_id, | |
| 46 gl::SurfaceTexture* surface_texture); | |
| 47 | |
| 48 void DestroySurfaceTextureSurface(int surface_texture_id, int client_id); | |
| 49 | |
| 50 gl::ScopedJavaSurface GetSurfaceTextureSurface(int surface_texture_id, | |
| 51 int client_id); | |
| 52 | |
| 53 bool RegisterChildProcessLauncher(JNIEnv* env); | 43 bool RegisterChildProcessLauncher(JNIEnv* env); |
| 54 | 44 |
| 55 } // namespace content | 45 } // namespace content |
| 56 | 46 |
| 57 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ | 47 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ |
| OLD | NEW |