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

Unified Diff: webkit/plugins/ppapi/v8_var_converter.h

Issue 16140011: Don't send PP_Vars/V8 values with cycles across PostMessage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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
Index: webkit/plugins/ppapi/v8_var_converter.h
diff --git a/webkit/plugins/ppapi/v8_var_converter.h b/webkit/plugins/ppapi/v8_var_converter.h
index c19644cdf890020847d5920094ad18dd5d9b0afe..d2db0a98085487054efc02371eaf9909a1153b17 100644
--- a/webkit/plugins/ppapi/v8_var_converter.h
+++ b/webkit/plugins/ppapi/v8_var_converter.h
@@ -18,7 +18,7 @@ namespace ppapi {
// Class to convert between PP_Vars and V8 values.
class WEBKIT_PLUGINS_EXPORT V8VarConverter {
public:
- V8VarConverter();
+ V8VarConverter(bool allow_cycles);
dmichael (off chromium) 2013/06/04 16:59:10 Better to just always disallow them, I think. We c
raymes 2013/06/04 19:36:06 Done.
// Converts the given PP_Var to a v8::Value. True is returned upon success.
bool ToV8Value(const PP_Var& var,
@@ -32,6 +32,9 @@ class WEBKIT_PLUGINS_EXPORT V8VarConverter {
v8::Handle<v8::Context> context,
PP_Var* result) const;
+ private:
+ bool allow_cycles_;
+
DISALLOW_COPY_AND_ASSIGN(V8VarConverter);
};

Powered by Google App Engine
This is Rietveld 408576698