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

Unified Diff: blimp/client/android/blimp_jni_registrar.h

Issue 1295243003: Initial commit of the blimp/ folder and target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address more nits Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/android/blimp_jni_registrar.h
diff --git a/blimp/client/android/blimp_jni_registrar.h b/blimp/client/android/blimp_jni_registrar.h
new file mode 100644
index 0000000000000000000000000000000000000000..693d1bd303f31dd21f41e9cf829ed096c58036c1
--- /dev/null
+++ b/blimp/client/android/blimp_jni_registrar.h
@@ -0,0 +1,20 @@
+// 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 BLIMP_CLIENT_ANDROID_BLIMP_JNI_REGISTRAR_H_
+#define BLIMP_CLIENT_ANDROID_BLIMP_JNI_REGISTRAR_H_
+
+#include <jni.h>
+
+namespace blimp {
+
+// Registers the native hooks for Java to native methods. If this fails Java
+// objects won't be able to call native methods. |env| is a JNI interface
+// pointer that holds all Java method signatures. It's lifecycle is owned by
+// the native Java VM code.
Wez 2015/09/03 18:26:11 I'd suggest: "Registers native method hooks with
David Trainor- moved to gerrit 2015/09/03 19:06:00 Ah yeah it's self contained (at least as far as ou
+bool RegisterBlimpJni(JNIEnv* env);
+
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_ANDROID_BLIMP_JNI_REGISTRAR_H_

Powered by Google App Engine
This is Rietveld 408576698