| Index: base/android/library_loader/library_loader_hooks.h
|
| diff --git a/base/android/library_loader/library_loader_hooks.h b/base/android/library_loader/library_loader_hooks.h
|
| index 78dc5359f3ea65baaea0c6f509ff2adf6319ed21..6203eb0e2c4471a15944d4aa9a3fe1428ccc6694 100644
|
| --- a/base/android/library_loader/library_loader_hooks.h
|
| +++ b/base/android/library_loader/library_loader_hooks.h
|
| @@ -12,6 +12,19 @@
|
| namespace base {
|
| namespace android {
|
|
|
| +// The process the shared library is loaded in.
|
| +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader
|
| +enum LibraryProcessType {
|
| + // The LibraryLoad has not been initialized.
|
| + PROCESS_UNINITIALIZED = 0,
|
| + // Shared library is running in browser process.
|
| + PROCESS_BROWSER = 1,
|
| + // Shared library is running in child process.
|
| + PROCESS_CHILD = 2,
|
| + // Shared library is running in webview process.
|
| + PROCESS_WEBVIEW = 3,
|
| +};
|
| +
|
| // Record any pending renderer histogram value as a histogram. Pending values
|
| // are set by RegisterChromiumAndroidLinkerRendererHistogram.
|
| BASE_EXPORT void RecordChromiumAndroidLinkerRendererHistogram();
|
| @@ -48,6 +61,9 @@ BASE_EXPORT void SetVersionNumber(const char* version_number);
|
| // created.
|
| BASE_EXPORT void LibraryLoaderExitHook();
|
|
|
| +// Return the process type the shared library is loaded in.
|
| +BASE_EXPORT LibraryProcessType GetLibraryProcesssType();
|
| +
|
| } // namespace android
|
| } // namespace base
|
|
|
|
|