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

Unified Diff: Source/bindings/templates/interface_base.cpp

Issue 77453002: IDL compiler: [CheckSecurity=Frame] interface + [DoNotCheckSecurity] members (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced to fixes Created 7 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
Index: Source/bindings/templates/interface_base.cpp
diff --git a/Source/bindings/templates/interface_base.cpp b/Source/bindings/templates/interface_base.cpp
index 959478b4adc464a8e7857ae84d4a0f0a18809415..9f84dfbd1591d3079c294f19ca8a5bca84d16ed9 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -93,7 +93,7 @@ template <typename T> void V8_USE(T) { }
{% block security_check_functions %}{% endblock %}
{# Methods #}
{% from 'methods.cpp' import generate_method, overload_resolution_method,
- method_callback with context %}
+ method_callback, domain_safe_method_getter with context %}
{% for method in methods %}
{% for world_suffix in method.world_suffixes %}
{% if not method.is_custom %}
@@ -106,8 +106,12 @@ template <typename T> void V8_USE(T) { }
{# A single callback is generated for overloaded methods #}
{{method_callback(method, world_suffix)}}
{% endif %}
+{% if method.is_do_not_check_security %}
+{{domain_safe_method_getter(method, world_suffix)}}
haraken 2013/11/21 10:13:05 domain_safe_method_getter => origin_safe_method_ge
+{% endif %}
{% endfor %}
{% endfor %}
+{% block domain_safe_method_setter %}{% endblock %}
} // namespace {{cpp_class_name}}V8Internal
{% block class_attributes %}{% endblock %}

Powered by Google App Engine
This is Rietveld 408576698