Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_ | |
| 6 #define CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "content/common/content_export.h" | |
| 12 | |
| 13 namespace base { | |
| 14 namespace android { | |
| 15 | |
| 16 class JNIOnLoadDelegate; | |
| 17 | |
| 18 } // namespace android | |
| 19 } // namespace base | |
| 20 | |
| 21 namespace content { | |
| 22 namespace android { | |
| 23 | |
| 24 // Returns true if JNI registration and initialization succeeded. Caller shall | |
| 25 // put the JNIOnLoadDelegate into |delegates| in reverse order. Refer | |
| 26 // JNIOnLoadDelegate for more information. | |
| 27 CONTENT_EXPORT bool OnJNIOnLoad( | |
| 28 JavaVM* vm, | |
| 29 std::vector<base::android::JNIOnLoadDelegate*>* delegates); | |
|
jam
2015/01/26 22:38:22
nit: no need to take a vector here, since there's
| |
| 30 | |
| 31 } // namespace android | |
| 32 } // namespace content | |
| 33 | |
| 34 #endif // CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_ | |
| OLD | NEW |