| 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.h" | 5 #include "content/app/android/child_process_service.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" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 std::vector<int> file_fds; | 119 std::vector<int> file_fds; |
| 120 JavaIntArrayToIntVector(env, j_file_ids, &file_ids); | 120 JavaIntArrayToIntVector(env, j_file_ids, &file_ids); |
| 121 JavaIntArrayToIntVector(env, j_file_fds, &file_fds); | 121 JavaIntArrayToIntVector(env, j_file_fds, &file_fds); |
| 122 | 122 |
| 123 InternalInitChildProcess( | 123 InternalInitChildProcess( |
| 124 file_ids, file_fds, env, clazz, context, service, | 124 file_ids, file_fds, env, clazz, context, service, |
| 125 cpu_count, cpu_features); | 125 cpu_count, cpu_features); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void ExitChildProcess(JNIEnv* env, jclass clazz) { | 128 void ExitChildProcess(JNIEnv* env, jclass clazz) { |
| 129 LOG(INFO) << "ChildProcessService: Exiting child process."; | 129 VLOG(0) << "ChildProcessService: Exiting child process."; |
| 130 LibraryLoaderExitHook(); | 130 LibraryLoaderExitHook(); |
| 131 _exit(0); | 131 _exit(0); |
| 132 } | 132 } |
| 133 | 133 |
| 134 bool RegisterChildProcessService(JNIEnv* env) { | 134 bool RegisterChildProcessService(JNIEnv* env) { |
| 135 return RegisterNativesImpl(env); | 135 return RegisterNativesImpl(env); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void ShutdownMainThread(JNIEnv* env, jobject obj) { | 138 void ShutdownMainThread(JNIEnv* env, jobject obj) { |
| 139 ChildThread::ShutdownThread(); | 139 ChildThread::ShutdownThread(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace content | 142 } // namespace content |
| OLD | NEW |