OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_ANDROID_LIBRARY_LOADER_HOOKS_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_LIBRARY_LOADER_HOOKS_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 |
| 12 class RegistrationMethod; |
| 13 |
| 14 // Registers the mimimal of callbacks that allows the entry point of the library |
| 15 // to be exposed to the calling java code. This handles only registering the |
| 16 // content specific callbacks. |
| 17 bool RegisterLibraryLoaderEntryHook(JNIEnv* env); |
| 18 |
| 19 // Registers the JNI bindings for the specified |method| definition containing |
| 20 // |count| elements. |
| 21 bool RegisterNativeMethods(JNIEnv* env, |
| 22 const RegistrationMethod* method, |
| 23 size_t count); |
| 24 |
| 25 #endif // CONTENT_BROWSER_ANDROID_LIBRARY_LOADER_HOOKS_H_ |
OLD | NEW |