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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/interface_base.cpp

Issue 1667213002: Don't expose nonstandard FileSystem API to Service Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-bind
Patch Set: virtual/stable rebaselines Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 {% include 'copyright_block.txt' %} 1 {% include 'copyright_block.txt' %}
2 #include "{{v8_class_or_partial}}.h" 2 #include "{{v8_class_or_partial}}.h"
3 3
4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} 4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %}
5 #include "{{filename}}" 5 #include "{{filename}}"
6 {% endfor %} 6 {% endfor %}
7 7
8 namespace blink { 8 namespace blink {
9 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class 9 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class
10 if is_active_dom_object else '0' %} 10 if is_active_dom_object else '0' %}
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "{{interface_name}}", info.Holder(), info.GetIsolate()); 63 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "{{interface_name}}", info.Holder(), info.GetIsolate());
64 if (!BindingSecurity::shouldAllowAccessTo(info.GetIsolate(), callingDOMWindo w(info.GetIsolate()), impl, exceptionState)) { 64 if (!BindingSecurity::shouldAllowAccessTo(info.GetIsolate(), callingDOMWindo w(info.GetIsolate()), impl, exceptionState)) {
65 exceptionState.throwIfNeeded(); 65 exceptionState.throwIfNeeded();
66 return false; 66 return false;
67 } 67 }
68 {% endif %} 68 {% endif %}
69 ASSERT(info.This()->IsObject()); 69 ASSERT(info.This()->IsObject());
70 return v8CallBoolean(v8::Local<v8::Object>::Cast(info.This())->CreateDataPro perty(info.GetIsolate()->GetCurrentContext(), name, v8Value)); 70 return v8CallBoolean(v8::Local<v8::Object>::Cast(info.This())->CreateDataPro perty(info.GetIsolate()->GetCurrentContext(), name, v8Value));
71 } 71 }
72 72
73 {% if has_constructor_attributes %} 73 {% if needs_constructor_setter_callback %}
74 static void {{cpp_class}}ConstructorAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 74 static void {{cpp_class}}ConstructorAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
75 { 75 {
76 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 76 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
77 do { 77 do {
78 v8::Local<v8::Value> data = info.Data(); 78 v8::Local<v8::Value> data = info.Data();
79 ASSERT(data->IsExternal()); 79 ASSERT(data->IsExternal());
80 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext()); 80 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext());
81 if (!perContextData) 81 if (!perContextData)
82 break; 82 break;
83 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data); 83 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data);
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 {{method_implemented_in_private_script(method)}} 445 {{method_implemented_in_private_script(method)}}
446 {% endfor %} 446 {% endfor %}
447 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 447 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
448 {{attribute_getter_implemented_in_private_script(attribute)}} 448 {{attribute_getter_implemented_in_private_script(attribute)}}
449 {% if attribute.has_setter %} 449 {% if attribute.has_setter %}
450 {{attribute_setter_implemented_in_private_script(attribute)}} 450 {{attribute_setter_implemented_in_private_script(attribute)}}
451 {% endif %} 451 {% endif %}
452 {% endfor %} 452 {% endfor %}
453 {% block partial_interface %}{% endblock %} 453 {% block partial_interface %}{% endblock %}
454 } // namespace blink 454 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698