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

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: Other extended attribute combinations 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 b450085f8837e47fe07647a1131188c3cb74788d..cc706154027a2ecfdf469653534599c55cda29cb 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -95,7 +95,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 %}
@@ -108,8 +108,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)}}
+{% 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