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 #ifndef CONTENT_APP_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 5 #ifndef CONTENT_APP_ANDROID_LIBRARY_LOADER_HOOKS_H_ |
6 #define CONTENT_APP_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 6 #define CONTENT_APP_ANDROID_LIBRARY_LOADER_HOOKS_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 | 12 |
14 // Register all content JNI functions now, rather than waiting for the process | 13 // Register all content JNI functions now, rather than waiting for the process |
15 // of fully loading the native library to complete. | 14 // of fully loading the native library to complete. |
16 bool EnsureJniRegistered(JNIEnv* env); | 15 bool EnsureJniRegistered(JNIEnv* env); |
17 | 16 |
18 // Do the intialization of content needed immediately after the native library | 17 // Do the intialization of content needed immediately after the native library |
19 // has loaded. | 18 // has loaded. |
20 // This is designed to be used as a hook function to be passed to | 19 // This is designed to be used as a hook function to be passed to |
21 // base::android::SetLibraryLoadedHook | 20 // base::android::SetLibraryLoadedHook |
22 bool LibraryLoaded(JNIEnv* env, jclass clazz); | 21 bool LibraryLoaded(JNIEnv* env, jclass clazz); |
23 | 22 |
24 } // namespace content | 23 } // namespace content |
25 | 24 |
26 #endif // CONTENT_APP_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 25 #endif // CONTENT_APP_ANDROID_LIBRARY_LOADER_HOOKS_H_ |
OLD | NEW |