Index: device/geolocation/android/geolocation_jni_registrar.h |
diff --git a/device/geolocation/android/geolocation_jni_registrar.h b/device/geolocation/android/geolocation_jni_registrar.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7b2a7c7cc125c31975a209863eaa68f9da632cd8 |
--- /dev/null |
+++ b/device/geolocation/android/geolocation_jni_registrar.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 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 DEVICE_GEOLOCATION_ANDROID_GEOLOCATION_JNI_REGISTRAR_H_ |
+#define DEVICE_GEOLOCATION_ANDROID_GEOLOCATION_JNI_REGISTRAR_H_ |
+ |
+#include <jni.h> |
+ |
+#include "device/geolocation/geolocation_export.h" |
+ |
+namespace device { |
+namespace android { |
+ |
+// Registers C++ methods in device/geolocation classes with JNI. |
+// See https://www.chromium.org/developers/design-documents/android-jni |
+// |
+// Must be called before classes in the geolocation module are used. |
+bool DEVICE_GEOLOCATION_EXPORT RegisterGeolocationJni(JNIEnv* env); |
+ |
+} // namespace android |
+} // namespace device |
+ |
+#endif // DEVICE_GEOLOCATION_ANDROID_GEOLOCATION_JNI_REGISTRAR_H_ |