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

Unified Diff: base/android/jni_string.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_registrar.h ('k') | base/android/locale_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_string.h
diff --git a/base/android/jni_string.h b/base/android/jni_string.h
index 43194a157bf2623c7089346af17b8b034f01cedb..62c4d02c8375e74d6f45e4f004495d13dd2f52d9 100644
--- a/base/android/jni_string.h
+++ b/base/android/jni_string.h
@@ -9,26 +9,27 @@
#include <string>
#include "base/android/scoped_java_ref.h"
+#include "base/base_export.h"
#include "base/string_piece.h"
namespace base {
namespace android {
// Convert a Java string to UTF8. Returns a std string.
-std::string ConvertJavaStringToUTF8(JNIEnv* env, jstring str);
-std::string ConvertJavaStringToUTF8(const JavaRef<jstring>& str);
+BASE_EXPORT std::string ConvertJavaStringToUTF8(JNIEnv* env, jstring str);
+BASE_EXPORT std::string ConvertJavaStringToUTF8(const JavaRef<jstring>& str);
// Convert a std string to Java string.
-ScopedJavaLocalRef<jstring> ConvertUTF8ToJavaString(
+BASE_EXPORT ScopedJavaLocalRef<jstring> ConvertUTF8ToJavaString(
JNIEnv* env,
const base::StringPiece& str);
// Convert a Java string to UTF16. Returns a string16.
-string16 ConvertJavaStringToUTF16(JNIEnv* env, jstring str);
-string16 ConvertJavaStringToUTF16(const JavaRef<jstring>& str);
+BASE_EXPORT string16 ConvertJavaStringToUTF16(JNIEnv* env, jstring str);
+BASE_EXPORT string16 ConvertJavaStringToUTF16(const JavaRef<jstring>& str);
// Convert a string16 to a Java string.
-ScopedJavaLocalRef<jstring> ConvertUTF16ToJavaString(
+BASE_EXPORT ScopedJavaLocalRef<jstring> ConvertUTF16ToJavaString(
JNIEnv* env,
const base::StringPiece16& str);
« no previous file with comments | « base/android/jni_registrar.h ('k') | base/android/locale_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698