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

Unified Diff: device/geolocation/android/geolocation_jni_registrar.h

Issue 2192683002: Reland 2:Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore size_t_to_int truncation warning Created 4 years, 5 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
« no previous file with comments | « device/geolocation/access_token_store.h ('k') | device/geolocation/android/geolocation_jni_registrar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « device/geolocation/access_token_store.h ('k') | device/geolocation/android/geolocation_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698