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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 {# http://www.chromium.org/blink/coding-style#TOC-License #} 1 {# http://www.chromium.org/blink/coding-style#TOC-License #}
2 /* 2 /*
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 {% endif %} 86 {% endif %}
87 {{attribute_setter_callback(attribute, world_suffix)}} 87 {{attribute_setter_callback(attribute, world_suffix)}}
88 {% endif %} 88 {% endif %}
89 {% endfor %} 89 {% endfor %}
90 {% endfor %} 90 {% endfor %}
91 {% block constructor_getter %}{% endblock %} 91 {% block constructor_getter %}{% endblock %}
92 {% block replaceable_attribute_setter_and_callback %}{% endblock %} 92 {% block replaceable_attribute_setter_and_callback %}{% endblock %}
93 {% block security_check_functions %}{% endblock %} 93 {% block security_check_functions %}{% endblock %}
94 {# Methods #} 94 {# Methods #}
95 {% from 'methods.cpp' import generate_method, overload_resolution_method, 95 {% from 'methods.cpp' import generate_method, overload_resolution_method,
96 method_callback with context %} 96 method_callback, domain_safe_method_getter with context %}
97 {% for method in methods %} 97 {% for method in methods %}
98 {% for world_suffix in method.world_suffixes %} 98 {% for world_suffix in method.world_suffixes %}
99 {% if not method.is_custom %} 99 {% if not method.is_custom %}
100 {{generate_method(method, world_suffix)}} 100 {{generate_method(method, world_suffix)}}
101 {% endif %} 101 {% endif %}
102 {% if method.overloads %} 102 {% if method.overloads %}
103 {{overload_resolution_method(method.overloads, world_suffix)}} 103 {{overload_resolution_method(method.overloads, world_suffix)}}
104 {% endif %} 104 {% endif %}
105 {% if not method.overload_index or method.overloads %} 105 {% if not method.overload_index or method.overloads %}
106 {# A single callback is generated for overloaded methods #} 106 {# A single callback is generated for overloaded methods #}
107 {{method_callback(method, world_suffix)}} 107 {{method_callback(method, world_suffix)}}
108 {% endif %} 108 {% endif %}
109 {% if method.is_do_not_check_security %}
110 {{domain_safe_method_getter(method, world_suffix)}}
haraken 2013/11/21 10:13:05 domain_safe_method_getter => origin_safe_method_ge
111 {% endif %}
109 {% endfor %} 112 {% endfor %}
110 {% endfor %} 113 {% endfor %}
114 {% block domain_safe_method_setter %}{% endblock %}
111 } // namespace {{cpp_class_name}}V8Internal 115 } // namespace {{cpp_class_name}}V8Internal
112 116
113 {% block class_attributes %}{% endblock %} 117 {% block class_attributes %}{% endblock %}
114 {% block class_accessors %}{% endblock %} 118 {% block class_accessors %}{% endblock %}
115 {% block class_methods %}{% endblock %} 119 {% block class_methods %}{% endblock %}
116 {% block configure_class_template %}{% endblock %} 120 {% block configure_class_template %}{% endblock %}
117 {% block get_template %}{% endblock %} 121 {% block get_template %}{% endblock %}
118 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} 122 {% block has_instance_and_has_instance_in_any_world %}{% endblock %}
119 {% block install_per_context_attributes %}{% endblock %} 123 {% block install_per_context_attributes %}{% endblock %}
120 {% block install_per_context_methods %}{% endblock %} 124 {% block install_per_context_methods %}{% endblock %}
121 {% block to_active_dom_object %}{% endblock %} 125 {% block to_active_dom_object %}{% endblock %}
122 {% block create_wrapper_and_deref_object %}{% endblock %} 126 {% block create_wrapper_and_deref_object %}{% endblock %}
123 } // namespace WebCore 127 } // namespace WebCore
124 {% endfilter %} 128 {% endfilter %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698