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

Unified Diff: base/android/jni_android.h

Issue 23835020: Android: cleanup jni_android to minimize external dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | base/android/jni_android.cc » ('j') | base/android/jni_android_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_android.h
diff --git a/base/android/jni_android.h b/base/android/jni_android.h
index 83c9bc88b787c145229dd3cae9c1a0850e9d383c..81ce3fd003d5af1973678c39e4250c0e0ef62ae7 100644
--- a/base/android/jni_android.h
+++ b/base/android/jni_android.h
@@ -56,9 +56,6 @@ const BASE_EXPORT jobject GetApplicationContext();
BASE_EXPORT ScopedJavaLocalRef<jclass> GetClass(JNIEnv* env,
const char* class_name);
-// Returns true iff the class |class_name| could be found.
-BASE_EXPORT bool HasClass(JNIEnv* env, const char* class_name);
-
// This class is a wrapper for JNIEnv Get(Static)MethodID.
class BASE_EXPORT MethodID {
public:
@@ -86,39 +83,6 @@ class BASE_EXPORT MethodID {
base::subtle::AtomicWord* atomic_method_id);
};
-// Gets the method ID from the class name. Clears the pending Java exception
-// and returns NULL if the method is not found. Caches results. Note that
-// MethodID::Get() above avoids a class lookup, but does not cache results.
-// Strings passed to this function are held in the cache and MUST remain valid
-// beyond the duration of all future calls to this function, across all
-// threads. In practice, this means that the function should only be used with
-// string constants.
-BASE_EXPORT jmethodID GetMethodIDFromClassName(JNIEnv* env,
- const char* class_name,
- const char* method,
- const char* jni_signature);
-
-// Gets the field ID for a class field.
-// This method triggers a fatal assertion if the field could not be found.
-BASE_EXPORT jfieldID GetFieldID(JNIEnv* env,
- const JavaRef<jclass>& clazz,
- const char* field_name,
- const char* jni_signature);
-
-// Returns true if |clazz| as a field with the given name and signature.
-// TODO(jcivelli): Determine whether we explicitly have to pass the environment.
-BASE_EXPORT bool HasField(JNIEnv* env,
- const JavaRef<jclass>& clazz,
- const char* field_name,
- const char* jni_signature);
-
-// Gets the field ID for a static class field.
-// This method triggers a fatal assertion if the field could not be found.
-BASE_EXPORT jfieldID GetStaticFieldID(JNIEnv* env,
- const JavaRef<jclass>& clazz,
- const char* field_name,
- const char* jni_signature);
-
// Returns true if an exception is pending in the provided JNIEnv*.
BASE_EXPORT bool HasException(JNIEnv* env);
« no previous file with comments | « no previous file | base/android/jni_android.cc » ('j') | base/android/jni_android_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698