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 #include "content/browser/android/sandboxed_process_launcher.h" | 5 #include "content/browser/android/sandboxed_process_launcher.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "jni/sandboxed_process_launcher_jni.h" | 11 #include "jni/SandboxedProcessLauncher_jni.h" |
12 | 12 |
13 using base::android::AttachCurrentThread; | 13 using base::android::AttachCurrentThread; |
14 using base::android::ToJavaArrayOfStrings; | 14 using base::android::ToJavaArrayOfStrings; |
15 using base::android::ScopedJavaLocalRef; | 15 using base::android::ScopedJavaLocalRef; |
16 using base::GlobalDescriptors; | 16 using base::GlobalDescriptors; |
17 using content::StartSandboxedProcessCallback; | 17 using content::StartSandboxedProcessCallback; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 // Called from SandboxedProcessLauncher.java when the SandboxedProcess was | 21 // Called from SandboxedProcessLauncher.java when the SandboxedProcess was |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 JNIEnv* env = AttachCurrentThread(); | 68 JNIEnv* env = AttachCurrentThread(); |
69 DCHECK(env); | 69 DCHECK(env); |
70 Java_SandboxedProcessLauncher_stop(env, static_cast<jint>(handle)); | 70 Java_SandboxedProcessLauncher_stop(env, static_cast<jint>(handle)); |
71 } | 71 } |
72 | 72 |
73 bool RegisterSandboxedProcessLauncher(JNIEnv* env) { | 73 bool RegisterSandboxedProcessLauncher(JNIEnv* env) { |
74 return RegisterNativesImpl(env); | 74 return RegisterNativesImpl(env); |
75 } | 75 } |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
OLD | NEW |