Chromium Code Reviews| Index: content/public/app/content_jni_onload.h |
| diff --git a/content/public/app/content_jni_onload.h b/content/public/app/content_jni_onload.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..dada1e3a7649c85bc4669077c392200fdbbf287b |
| --- /dev/null |
| +++ b/content/public/app/content_jni_onload.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_ |
| +#define CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_ |
| + |
| +#include <jni.h> |
| + |
| +#include "content/common/content_export.h" |
| + |
| +namespace base { |
| +namespace android { |
| + |
| +class JNIOnLoadDelegate; |
| + |
| +} // namespace android |
| +} // namespace base |
| + |
| +namespace content { |
| +namespace android { |
| + |
| +// Returns true if JNI registration and initialization succeeded. Caller shall |
| +// put the JNIOnLoadDelegate into |delegates| in reverse order. Refer |
| +// JNIOnLoadDelegate for more information. |
| +CONTENT_EXPORT bool OnJNIOnLoad( |
| + JavaVM* vm, |
| + base::android::JNIOnLoadDelegate* delegates); |
|
jam
2015/01/27 16:10:33
nit: delegate instead of delegates
|
| + |
| +} // namespace android |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_ |