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/child_process_service_impl.h" | 5 #include "content/app/android/child_process_service_impl.h" |
6 | 6 |
7 #include <android/native_window_jni.h> | 7 #include <android/native_window_jni.h> |
8 #include <cpu-features.h> | 8 #include <cpu-features.h> |
9 | 9 |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
12 #include "base/android/library_loader/library_loader_hooks.h" | 12 #include "base/android/library_loader/library_loader_hooks.h" |
13 #include "base/android/memory_pressure_listener_android.h" | 13 #include "base/android/memory_pressure_listener_android.h" |
14 #include "base/android/unguessable_token_android.h" | 14 #include "base/android/unguessable_token_android.h" |
15 #include "base/file_descriptor_store.h" | 15 #include "base/file_descriptor_store.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/posix/global_descriptors.h" | 19 #include "base/posix/global_descriptors.h" |
20 #include "base/unguessable_token.h" | 20 #include "base/unguessable_token.h" |
21 #include "content/child/child_thread_impl.h" | 21 #include "content/child/child_thread_impl.h" |
22 #include "content/public/common/content_descriptors.h" | 22 #include "content/public/common/content_descriptors.h" |
23 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
24 #include "gpu/ipc/common/android/scoped_surface_request_conduit.h" | 24 #include "gpu/ipc/common/android/scoped_surface_request_conduit.h" |
25 #include "gpu/ipc/common/gpu_surface_lookup.h" | 25 #include "gpu/ipc/common/gpu_surface_lookup.h" |
26 #include "ipc/ipc_descriptors.h" | 26 #include "ipc/ipc_descriptors.h" |
27 #include "jni/ChildProcessServiceImpl_jni.h" | 27 #include "jni/ChildProcessServiceImpl_jni.h" |
28 #include "services/service_manager/embedder/shared_file_util.h" | 28 #include "services/service_manager/public/cpp/shared_file_util.h" |
29 #include "services/service_manager/embedder/switches.h" | |
30 #include "ui/gl/android/scoped_java_surface.h" | 29 #include "ui/gl/android/scoped_java_surface.h" |
31 #include "ui/gl/android/surface_texture.h" | 30 #include "ui/gl/android/surface_texture.h" |
32 | 31 |
33 using base::android::AttachCurrentThread; | 32 using base::android::AttachCurrentThread; |
34 using base::android::CheckException; | 33 using base::android::CheckException; |
35 using base::android::JavaIntArrayToIntVector; | 34 using base::android::JavaIntArrayToIntVector; |
36 using base::android::JavaParamRef; | 35 using base::android::JavaParamRef; |
37 | 36 |
38 namespace content { | 37 namespace content { |
39 | 38 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 186 |
188 bool RegisterChildProcessServiceImpl(JNIEnv* env) { | 187 bool RegisterChildProcessServiceImpl(JNIEnv* env) { |
189 return RegisterNativesImpl(env); | 188 return RegisterNativesImpl(env); |
190 } | 189 } |
191 | 190 |
192 void ShutdownMainThread(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 191 void ShutdownMainThread(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
193 ChildThreadImpl::ShutdownThread(); | 192 ChildThreadImpl::ShutdownThread(); |
194 } | 193 } |
195 | 194 |
196 } // namespace content | 195 } // namespace content |
OLD | NEW |