| Index: base/android/jni_android.h
|
| diff --git a/base/android/jni_android.h b/base/android/jni_android.h
|
| index 462173f85d38cf48b62e466ebeb97e1b0a6ea006..9eda8309bcef7877a48a0a267789ddd4dd0de70e 100644
|
| --- a/base/android/jni_android.h
|
| +++ b/base/android/jni_android.h
|
| @@ -30,19 +30,15 @@ void InitApplicationContext(jobject context);
|
| // Returns the application context assigned by InitApplicationContext().
|
| jobject GetApplicationContext();
|
|
|
| -// Wraps a method ID.
|
| -class MethodID {
|
| - public:
|
| - jmethodID id() { return id_; }
|
| - protected:
|
| - // Gets the method ID from the class name. Clears the pending Java exception
|
| - // and returns NULL if the method is not found. Note that GetMethodID() below
|
| - // avoids a class lookup, so should be used in preference when possible.
|
| - MethodID(JNIEnv* env, const char* class_name, const char* method,
|
| - const char* jni_signature);
|
| - private:
|
| - jmethodID id_;
|
| -};
|
| +// Gets the method ID from the class name. class_name and method must be valid
|
| +// Java identifiers and jni_signature must a valid JNI signature. Clears the
|
| +// pending Java exception and returns NULL if the method is not found. Caches
|
| +// results. Note that GetMethodID() below avoids a class lookup, but does not
|
| +// cache results.
|
| +jmethodID GetMethodIDFromClassName(JNIEnv* env,
|
| + const char* class_name,
|
| + const char* method,
|
| + const char* jni_signature);
|
|
|
| // Get the method ID for a method. Will clear the pending Java
|
| // exception and return 0 if the method is not found.
|
|
|