| 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 package org.chromium.content.app; | 5 package org.chromium.content.app; |
| 6 | 6 |
| 7 import android.text.TextUtils; | 7 import android.text.TextUtils; |
| 8 import android.util.Log; | 8 import android.util.Log; |
| 9 | 9 |
| 10 import org.chromium.base.CommandLine; |
| 10 import org.chromium.base.JNINamespace; | 11 import org.chromium.base.JNINamespace; |
| 11 import org.chromium.base.SysUtils; | 12 import org.chromium.base.SysUtils; |
| 12 import org.chromium.content.common.CommandLine; | |
| 13 import org.chromium.content.common.ProcessInitException; | 13 import org.chromium.content.common.ProcessInitException; |
| 14 import org.chromium.content.common.ResultCodes; | 14 import org.chromium.content.common.ResultCodes; |
| 15 import org.chromium.content.common.TraceEvent; | 15 import org.chromium.content.common.TraceEvent; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * This class provides functionality to load and register the native libraries. | 18 * This class provides functionality to load and register the native libraries. |
| 19 * Callers are allowed to separate loading the libraries from initializing them. | 19 * Callers are allowed to separate loading the libraries from initializing them. |
| 20 * This may be an advantage for Android Webview, where the libraries can be load
ed | 20 * This may be an advantage for Android Webview, where the libraries can be load
ed |
| 21 * by the zygote process, but then needs per process initialization after the | 21 * by the zygote process, but then needs per process initialization after the |
| 22 * application processes are forked from the zygote process. | 22 * application processes are forked from the zygote process. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // content/public/common/result_codes.h. | 170 // content/public/common/result_codes.h. |
| 171 private static native int nativeLibraryLoaded(String[] initCommandLine); | 171 private static native int nativeLibraryLoaded(String[] initCommandLine); |
| 172 | 172 |
| 173 // Method called to record statistics about the content linker operation, | 173 // Method called to record statistics about the content linker operation, |
| 174 // i.e. whether the library failed to be loaded at a fixed address, and | 174 // i.e. whether the library failed to be loaded at a fixed address, and |
| 175 // whether the device is 'low-memory'. | 175 // whether the device is 'low-memory'. |
| 176 private static native void nativeRecordContentAndroidLinkerHistogram( | 176 private static native void nativeRecordContentAndroidLinkerHistogram( |
| 177 boolean loadedAtFixedAddressFailed, | 177 boolean loadedAtFixedAddressFailed, |
| 178 boolean isLowMemoryDevice); | 178 boolean isLowMemoryDevice); |
| 179 } | 179 } |
| OLD | NEW |