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" | 8 #include "base/global_descriptors_posix.h" |
9 #include "base/logging.h" | 9 #include "base/logging.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/sandboxed_process_service_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 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class SurfaceTexturePeerSandboxedImpl : public content::SurfaceTexturePeer { | 22 class SurfaceTexturePeerSandboxedImpl : public content::SurfaceTexturePeer { |
23 public: | 23 public: |
24 // |service| is the instance of | 24 // |service| is the instance of |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 LOG(INFO) << "SandboxedProcessService: Exiting sandboxed process."; | 97 LOG(INFO) << "SandboxedProcessService: Exiting sandboxed process."; |
98 LibraryLoaderExitHook(); | 98 LibraryLoaderExitHook(); |
99 _exit(0); | 99 _exit(0); |
100 } | 100 } |
101 | 101 |
102 bool RegisterSandboxedProcessService(JNIEnv* env) { | 102 bool RegisterSandboxedProcessService(JNIEnv* env) { |
103 return RegisterNativesImpl(env); | 103 return RegisterNativesImpl(env); |
104 } | 104 } |
105 | 105 |
106 } // namespace content | 106 } // namespace content |
OLD | NEW |