| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/android/library_loader/library_loader_hooks.h" | 5 #include "base/android/library_loader/library_loader_hooks.h" |
| 6 | 6 |
| 7 #include "base/android/command_line_android.h" | 7 #include "base/android/command_line_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/android/library_loader/library_load_from_apk_status_codes.h" | 9 #include "base/android/library_loader/library_load_from_apk_status_codes.h" |
| 10 #include "base/android/library_loader/library_prefetcher.h" | 10 #include "base/android/library_loader/library_prefetcher.h" |
| 11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/metrics/sparse_histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
| 14 #include "jni/LibraryLoader_jni.h" | 14 #include "jni/LibraryLoader_jni.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 namespace android { | 17 namespace android { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 base::AtExitManager* g_at_exit_manager = NULL; | 21 base::AtExitManager* g_at_exit_manager = NULL; |
| 22 const char* g_library_version_number = ""; | 22 const char* g_library_version_number = ""; |
| 23 LibraryLoadedHook* g_registration_callback = NULL; | 23 LibraryLoadedHook* g_registration_callback = NULL; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 return static_cast<LibraryProcessType>( | 210 return static_cast<LibraryProcessType>( |
| 211 Java_LibraryLoader_getLibraryProcessType(env)); | 211 Java_LibraryLoader_getLibraryProcessType(env)); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void InitAtExitManager() { | 214 void InitAtExitManager() { |
| 215 g_at_exit_manager = new base::AtExitManager(); | 215 g_at_exit_manager = new base::AtExitManager(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace android | 218 } // namespace android |
| 219 } // namespace base | 219 } // namespace base |
| OLD | NEW |