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

Unified Diff: content/browser/android/java/java_type.h

Issue 393733002: [Android] Check for Java object types covariance in Java Bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated findbugs_known_bugs Created 6 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 | « content/browser/android/java/java_method.cc ('k') | content/browser/android/java/java_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/java/java_type.h
diff --git a/content/browser/android/java/java_type.h b/content/browser/android/java/java_type.h
index 884f70485eae8cbebc5bd30ab0fefdbb09bd335e..0ad12d69840e664f1a9480926d6b002687b1d45e 100644
--- a/content/browser/android/java/java_type.h
+++ b/content/browser/android/java/java_type.h
@@ -8,12 +8,13 @@
#include <string>
#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
namespace content {
// The type of a Java value. A light-weight enum-like structure intended for
// use by value and in STL containers.
-struct JavaType {
+struct CONTENT_EXPORT JavaType {
JavaType();
JavaType(const JavaType& other);
~JavaType();
@@ -23,6 +24,11 @@ struct JavaType {
// 'binary name'.
static JavaType CreateFromBinaryName(const std::string& binary_name);
+ // JNIName is used with FindClass.
+ std::string JNIName() const;
+ // JNISignature is used for creating method signatures.
+ std::string JNISignature() const;
+
enum Type {
TypeBoolean,
TypeByte,
@@ -43,6 +49,7 @@ struct JavaType {
Type type;
scoped_ptr<JavaType> inner_type; // Used for TypeArray only.
+ std::string class_jni_name; // Used for TypeString and TypeObject only.
};
} // namespace content
« no previous file with comments | « content/browser/android/java/java_method.cc ('k') | content/browser/android/java/java_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698