Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: content/app/android/child_process_service_impl.cc

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/app/DEPS ('k') | content/app/android/content_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/public/cpp/shared_file_util.h" 28 #include "services/service_manager/embedder/shared_file_util.h"
29 #include "services/service_manager/embedder/switches.h"
29 #include "ui/gl/android/scoped_java_surface.h" 30 #include "ui/gl/android/scoped_java_surface.h"
30 #include "ui/gl/android/surface_texture.h" 31 #include "ui/gl/android/surface_texture.h"
31 32
32 using base::android::AttachCurrentThread; 33 using base::android::AttachCurrentThread;
33 using base::android::CheckException; 34 using base::android::CheckException;
34 using base::android::JavaIntArrayToIntVector; 35 using base::android::JavaIntArrayToIntVector;
35 using base::android::JavaParamRef; 36 using base::android::JavaParamRef;
36 37
37 namespace content { 38 namespace content {
38 39
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 187
187 bool RegisterChildProcessServiceImpl(JNIEnv* env) { 188 bool RegisterChildProcessServiceImpl(JNIEnv* env) {
188 return RegisterNativesImpl(env); 189 return RegisterNativesImpl(env);
189 } 190 }
190 191
191 void ShutdownMainThread(JNIEnv* env, const JavaParamRef<jobject>& obj) { 192 void ShutdownMainThread(JNIEnv* env, const JavaParamRef<jobject>& obj) {
192 ChildThreadImpl::ShutdownThread(); 193 ChildThreadImpl::ShutdownThread();
193 } 194 }
194 195
195 } // namespace content 196 } // namespace content
OLDNEW
« no previous file with comments | « content/app/DEPS ('k') | content/app/android/content_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698