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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 2713413002: Blink bindings: use v8 to enforce method call access checks (Closed)
Patch Set: Restore comment Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
10 10
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 368
369 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) { 369 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) {
370 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info); 370 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
371 } 371 }
372 372
373 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) { 373 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) {
374 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo); 374 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo);
375 } 375 }
376 376
377 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 377 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
378 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder}, 378 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcc ess},
379 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder}, 379 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess},
380 }; 380 };
381 381
382 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) { 382 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) {
383 // Initialize the interface object's template. 383 // Initialize the interface object's template.
384 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate); 384 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate);
385 385
386 if (!RuntimeEnabledFeatures::featureNameEnabled()) { 386 if (!RuntimeEnabledFeatures::featureNameEnabled()) {
387 return; 387 return;
388 } 388 }
389 389
(...skipping 15 matching lines...) Expand all
405 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8:: Object> prototype, v8::Local<v8::Function> interface) { 405 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8:: Object> prototype, v8::Local<v8::Function> interface) {
406 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world); 406 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world);
407 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 407 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
408 ALLOW_UNUSED_LOCAL(signature); 408 ALLOW_UNUSED_LOCAL(signature);
409 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAtt ributeAttributeGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttr ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 409 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAtt ributeAttributeGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttr ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder};
410 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration); 410 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration);
411 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", V8TestInterfacePartial::par tial4StaticLongAttributeAttributeGetterCallback, V8TestInterfacePartial::partial 4StaticLongAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; 411 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", V8TestInterfacePartial::par tial4StaticLongAttributeAttributeGetterCallback, V8TestInterfacePartial::partial 4StaticLongAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder};
412 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration); 412 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration);
413 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort}; 413 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort};
414 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration); 414 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration);
415 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration = {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4Stati cVoidMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface , V8DOMConfiguration::CheckHolder}; 415 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration = {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4Stati cVoidMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface , V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess};
416 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4StaticvoidmethodConfiguration); 416 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4StaticvoidmethodConfiguration);
417 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation = {"partial4VoidMethod", V8TestInterfacePartial::partial4VoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder}; 417 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation = {"partial4VoidMethod", V8TestInterfacePartial::partial4VoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess};
418 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4VoidmethodConfiguration); 418 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4VoidmethodConfiguration);
419 } 419 }
420 420
421 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) { 421 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) {
422 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ()); 422 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ());
423 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo); 423 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo);
424 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo); 424 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo);
425 ALLOW_UNUSED_LOCAL(interface); 425 ALLOW_UNUSED_LOCAL(interface);
426 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface); 426 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface);
427 } 427 }
(...skipping 25 matching lines...) Expand all
453 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 453 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
454 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 454 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
455 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 455 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
456 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 456 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
457 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 457 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
458 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 458 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
459 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 459 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
460 } 460 }
461 461
462 } // namespace blink 462 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698