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

Unified Diff: content/browser/renderer_host/java/java_bound_object.h

Issue 213693005: [Android] Block access to java.lang.Object.getClass in injected Java objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests Created 6 years, 9 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 | content/browser/renderer_host/java/java_bound_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/java/java_bound_object.h
diff --git a/content/browser/renderer_host/java/java_bound_object.h b/content/browser/renderer_host/java/java_bound_object.h
index 603537e6f0bf721128d3daff3cd197a1dcf01b87..9b357ba14364055f0fd36ff5c41be416e4a9e832 100644
--- a/content/browser/renderer_host/java/java_bound_object.h
+++ b/content/browser/renderer_host/java/java_bound_object.h
@@ -64,6 +64,8 @@ class JavaBoundObject {
void EnsureMethodsAreSetUp() const;
+ static void ThrowSecurityException(const char* message);
+
// The weak ref to the underlying Java object that this JavaBoundObject
// instance represents.
JavaObjectWeakGlobalRef java_object_;
@@ -80,6 +82,7 @@ class JavaBoundObject {
typedef std::multimap<std::string, linked_ptr<JavaMethod> > JavaMethodMap;
mutable JavaMethodMap methods_;
mutable bool are_methods_set_up_;
+ mutable jmethodID object_get_class_method_id_;
const bool can_enumerate_methods_;
base::android::ScopedJavaGlobalRef<jclass> safe_annotation_clazz_;
« no previous file with comments | « no previous file | content/browser/renderer_host/java/java_bound_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698