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/app/android/sandboxed_process_service.h" | 5 #include "content/app/android/sandboxed_process_service.h" |
6 | 6 |
7 #include "base/android/jni_array.h" | 7 #include "base/android/jni_array.h" |
8 #include "base/global_descriptors_posix.h" | |
9 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/posix/global_descriptors.h" |
10 #include "content/common/android/surface_texture_peer.h" | 10 #include "content/common/android/surface_texture_peer.h" |
11 #include "content/public/app/android_library_loader_hooks.h" | 11 #include "content/public/app/android_library_loader_hooks.h" |
12 #include "content/public/common/content_descriptors.h" | 12 #include "content/public/common/content_descriptors.h" |
13 #include "ipc/ipc_descriptors.h" | 13 #include "ipc/ipc_descriptors.h" |
14 #include "jni/SandboxedProcessService_jni.h" | 14 #include "jni/SandboxedProcessService_jni.h" |
15 | 15 |
16 using base::android::AttachCurrentThread; | 16 using base::android::AttachCurrentThread; |
17 using base::android::CheckException; | 17 using base::android::CheckException; |
18 using base::android::JavaIntArrayToIntVector; | 18 using base::android::JavaIntArrayToIntVector; |
19 | 19 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 LOG(INFO) << "SandboxedProcessService: Exiting sandboxed process."; | 94 LOG(INFO) << "SandboxedProcessService: Exiting sandboxed process."; |
95 LibraryLoaderExitHook(); | 95 LibraryLoaderExitHook(); |
96 _exit(0); | 96 _exit(0); |
97 } | 97 } |
98 | 98 |
99 bool RegisterSandboxedProcessService(JNIEnv* env) { | 99 bool RegisterSandboxedProcessService(JNIEnv* env) { |
100 return RegisterNativesImpl(env); | 100 return RegisterNativesImpl(env); |
101 } | 101 } |
102 | 102 |
103 } // namespace content | 103 } // namespace content |
OLD | NEW |