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

Side by Side Diff: content/public/app/content_jni_onload.h

Issue 864563002: Separate JNI registration with initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 5 years, 11 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698