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

Side by Side Diff: base/android/library_loader/library_loader_hooks.h

Issue 897683003: Know the process shared library loaded in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview compile error Created 5 years, 10 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
OLDNEW
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 #ifndef BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ 5 #ifndef BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_
6 #define BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ 6 #define BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/library_loader/library_process_type.h"
10 #include "base/base_export.h" 11 #include "base/base_export.h"
11 12
12 namespace base { 13 namespace base {
13 namespace android { 14 namespace android {
14 15
15 // Record any pending renderer histogram value as a histogram. Pending values 16 // Record any pending renderer histogram value as a histogram. Pending values
16 // are set by RegisterChromiumAndroidLinkerRendererHistogram. 17 // are set by RegisterChromiumAndroidLinkerRendererHistogram.
17 BASE_EXPORT void RecordChromiumAndroidLinkerRendererHistogram(); 18 BASE_EXPORT void RecordChromiumAndroidLinkerRendererHistogram();
18 19
19 // Registers the callbacks that allows the entry point of the library to be 20 // Registers the callbacks that allows the entry point of the library to be
(...skipping 21 matching lines...) Expand all
41 // Pass the version name to the loader. This used to check that the library 42 // Pass the version name to the loader. This used to check that the library
42 // version matches the version expected by Java before completing JNI 43 // version matches the version expected by Java before completing JNI
43 // registration. 44 // registration.
44 // Note: argument must remain valid at least until library loading is complete. 45 // Note: argument must remain valid at least until library loading is complete.
45 BASE_EXPORT void SetVersionNumber(const char* version_number); 46 BASE_EXPORT void SetVersionNumber(const char* version_number);
46 47
47 // Call on exit to delete the AtExitManager which OnLibraryLoadedOnUIThread 48 // Call on exit to delete the AtExitManager which OnLibraryLoadedOnUIThread
48 // created. 49 // created.
49 BASE_EXPORT void LibraryLoaderExitHook(); 50 BASE_EXPORT void LibraryLoaderExitHook();
50 51
52 // Return the process type the shared library is loaded in.
53 BASE_EXPORT LibraryProcessType GetLibraryProcesssType();
54
51 } // namespace android 55 } // namespace android
52 } // namespace base 56 } // namespace base
53 57
54 #endif // BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ 58 #endif // BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698