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/global_descriptors_posix.h" | 7 #include "base/global_descriptors_posix.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/common/android/surface_texture_peer.h" | 9 #include "content/common/android/surface_texture_peer.h" |
10 #if !defined(ANDROID_UPSTREAM_BRINGUP) | |
11 #include "content/common/chrome_descriptors.h" | |
12 #endif | |
13 #include "content/public/app/android_library_loader_hooks.h" | 10 #include "content/public/app/android_library_loader_hooks.h" |
| 11 #include "content/public/common/content_descriptors.h" |
14 #include "ipc/ipc_descriptors.h" | 12 #include "ipc/ipc_descriptors.h" |
15 #include "jni/sandboxed_process_service_jni.h" | 13 #include "jni/sandboxed_process_service_jni.h" |
16 | 14 |
17 using base::android::AttachCurrentThread; | 15 using base::android::AttachCurrentThread; |
18 using base::android::CheckException; | 16 using base::android::CheckException; |
19 | 17 |
20 namespace { | 18 namespace { |
21 | 19 |
22 class SurfaceTexturePeerSandboxedImpl : public content::SurfaceTexturePeer { | 20 class SurfaceTexturePeerSandboxedImpl : public content::SurfaceTexturePeer { |
23 public: | 21 public: |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 LOG(INFO) << "SandboxedProcessService: Exiting sandboxed process."; | 88 LOG(INFO) << "SandboxedProcessService: Exiting sandboxed process."; |
91 LibraryLoaderExitHook(); | 89 LibraryLoaderExitHook(); |
92 _exit(0); | 90 _exit(0); |
93 } | 91 } |
94 | 92 |
95 bool RegisterSandboxedProcessService(JNIEnv* env) { | 93 bool RegisterSandboxedProcessService(JNIEnv* env) { |
96 return RegisterNativesImpl(env); | 94 return RegisterNativesImpl(env); |
97 } | 95 } |
98 | 96 |
99 } // namespace content | 97 } // namespace content |
OLD | NEW |