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

Unified Diff: base/android/jni_helper.h

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 8 years, 1 month 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 | « base/android/jni_array.h ('k') | base/android/jni_registrar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_helper.h
diff --git a/base/android/jni_helper.h b/base/android/jni_helper.h
index 22883cbbcfcab5d4d1f6a559a6e38968cbd43d21..895bf95a9d12786838a173ff55884477f1b8a469 100644
--- a/base/android/jni_helper.h
+++ b/base/android/jni_helper.h
@@ -7,13 +7,14 @@
#include <jni.h>
+#include "base/base_export.h"
#include "base/android/scoped_java_ref.h"
// Manages WeakGlobalRef lifecycle.
// This class is not thread-safe w.r.t. get() and reset(). Multiple threads may
// safely use get() concurrently, but if the user calls reset() (or of course,
// calls the destructor) they'll need to provide their own synchronization.
-class JavaObjectWeakGlobalRef {
+class BASE_EXPORT JavaObjectWeakGlobalRef {
public:
JavaObjectWeakGlobalRef();
JavaObjectWeakGlobalRef(const JavaObjectWeakGlobalRef& orig);
@@ -34,7 +35,7 @@ class JavaObjectWeakGlobalRef {
// Get the real object stored in the weak reference returned as a
// ScopedJavaLocalRef.
-base::android::ScopedJavaLocalRef<jobject> GetRealObject(
+BASE_EXPORT base::android::ScopedJavaLocalRef<jobject> GetRealObject(
JNIEnv* env, jweak obj);
#endif // BASE_ANDROID_JNI_HELPER_H_
« no previous file with comments | « base/android/jni_array.h ('k') | base/android/jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698