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

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

Issue 2017963003: Upstream: ChildProcessLauncher connects renderer processes of WebAPKs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO. Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_LIBRARY_LOADER_HOOKS_H_ 5 #ifndef BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_
6 #define BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ 6 #define BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 11
12 namespace base { 12 namespace base {
13 namespace android { 13 namespace android {
14 14
15 // The process the shared library is loaded in. 15 // The process the shared library is loaded in.
16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader 16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader
17 enum LibraryProcessType { 17 enum LibraryProcessType {
18 // The LibraryLoad has not been initialized. 18 // The LibraryLoad has not been initialized.
19 PROCESS_UNINITIALIZED = 0, 19 PROCESS_UNINITIALIZED = 0,
20 // Shared library is running in browser process. 20 // Shared library is running in browser process.
21 PROCESS_BROWSER = 1, 21 PROCESS_BROWSER = 1,
22 // Shared library is running in child process. 22 // Shared library is running in child process.
23 PROCESS_CHILD = 2, 23 PROCESS_CHILD = 2,
24 // Shared library is running in the app that uses webview. 24 // Shared library is running in the app that uses webview.
25 PROCESS_WEBVIEW = 3, 25 PROCESS_WEBVIEW = 3,
26 // Shared library is running in child process as part of webview. 26 // Shared library is running in child process as part of webview.
27 PROCESS_WEBVIEW_CHILD = 4, 27 PROCESS_WEBVIEW_CHILD = 4,
28 // Shared library is running in child process as part of WebAPK.
29 // TODO(hanxi): Removes this type if we don't need it in
30 // {@link LibraryLoader} when loading Chrome's shared libraries in WebAPKs.
31 PROCESS_WEBAPK_CHILD = 5,
michaelbai 2016/06/08 19:27:12 Sorry, could you add it back when you really use i
Xi Han 2016/06/08 19:42:44 Sure, removed.
28 }; 32 };
29 33
30 // Record any pending renderer histogram value as histograms. Pending values 34 // Record any pending renderer histogram value as histograms. Pending values
31 // are set by RegisterChromiumAndroidLinkerRendererHistogram and 35 // are set by RegisterChromiumAndroidLinkerRendererHistogram and
32 // RegisterLibraryPreloaderRendererHistogram. 36 // RegisterLibraryPreloaderRendererHistogram.
33 BASE_EXPORT void RecordLibraryLoaderRendererHistograms(); 37 BASE_EXPORT void RecordLibraryLoaderRendererHistograms();
34 38
35 // Registers the callbacks that allows the entry point of the library to be 39 // Registers the callbacks that allows the entry point of the library to be
36 // exposed to the calling java code. This handles only registering the 40 // exposed to the calling java code. This handles only registering the
37 // the callbacks needed by the loader. Any application specific JNI bindings 41 // the callbacks needed by the loader. Any application specific JNI bindings
(...skipping 30 matching lines...) Expand all
68 BASE_EXPORT LibraryProcessType GetLibraryProcessType(JNIEnv* env); 72 BASE_EXPORT LibraryProcessType GetLibraryProcessType(JNIEnv* env);
69 73
70 // Initialize AtExitManager, this must be done at the begining of loading 74 // Initialize AtExitManager, this must be done at the begining of loading
71 // shared library. 75 // shared library.
72 void InitAtExitManager(); 76 void InitAtExitManager();
73 77
74 } // namespace android 78 } // namespace android
75 } // namespace base 79 } // namespace base
76 80
77 #endif // BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ 81 #endif // BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698