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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp

Issue 425853006: Introduce V8DOMConfiguration::InstanceOrPrototype enum (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceCheckSecurity.h" 8 #include "V8TestInterfaceCheckSecurity.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 static void TestInterfaceCheckSecurityOriginSafeMethodSetterCallback(v8::Local<v 8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 462 static void TestInterfaceCheckSecurityOriginSafeMethodSetterCallback(v8::Local<v 8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
463 { 463 {
464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
465 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMe thodSetter(name, v8Value, info); 465 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMe thodSetter(name, v8Value, info);
466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
467 } 467 }
468 468
469 } // namespace TestInterfaceCheckSecurityV8Internal 469 } // namespace TestInterfaceCheckSecurityV8Internal
470 470
471 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceCheckSecu rityAttributes[] = { 471 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceCheckSecu rityAttributes[] = {
472 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , 0 /* on instance */}, 472 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance},
473 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, 0 /* o n instance */}, 473 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance},
474 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::ALL_CAN_READ), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, 0 /* on instance */}, 474 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::ALL_CAN_READ), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nInstance},
475 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, 0 /* on instance */}, 475 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
476 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett erCallback, TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityForc eSetAttributeOnThisCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN _READ | v8::ALL_CAN_WRITE), static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts, 0 /* on instance */}, 476 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett erCallback, TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityForc eSetAttributeOnThisCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN _READ | v8::ALL_CAN_WRITE), static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
477 }; 477 };
478 478
479 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurit yMethods[] = { 479 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurit yMethods[] = {
480 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 480 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
481 }; 481 };
482 482
483 static void installV8TestInterfaceCheckSecurityTemplate(v8::Handle<v8::FunctionT emplate> functionTemplate, v8::Isolate* isolate) 483 static void installV8TestInterfaceCheckSecurityTemplate(v8::Handle<v8::FunctionT emplate> functionTemplate, v8::Isolate* isolate)
484 { 484 {
485 functionTemplate->ReadOnlyPrototype(); 485 functionTemplate->ReadOnlyPrototype();
486 486
487 v8::Local<v8::Signature> defaultSignature; 487 v8::Local<v8::Signature> defaultSignature;
488 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceCheckSecurity", v8::Local<v8::FunctionTemplate>(), V8TestInte rfaceCheckSecurity::internalFieldCount, 488 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceCheckSecurity", v8::Local<v8::FunctionTemplate>(), V8TestInte rfaceCheckSecurity::internalFieldCount,
489 V8TestInterfaceCheckSecurityAttributes, WTF_ARRAY_LENGTH(V8TestInterface CheckSecurityAttributes), 489 V8TestInterfaceCheckSecurityAttributes, WTF_ARRAY_LENGTH(V8TestInterface CheckSecurityAttributes),
490 0, 0, 490 0, 0,
491 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe ckSecurityMethods), 491 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe ckSecurityMethods),
492 isolate); 492 isolate);
493 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate(); 493 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate();
494 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate(); 494 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate();
495 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec kSecurity::wrapperTypeInfo))); 495 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec kSecurity::wrapperTypeInfo)));
496 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo idMethodOriginSafeAttributeConfiguration = { 496 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo idMethodOriginSafeAttributeConfiguration = {
497 "doNotCheckSecurityVoidMethod", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityVoidMethodOriginSafeMethodGetterCallback, TestInterfaceCheckSecu rityV8Internal::TestInterfaceCheckSecurityOriginSafeMethodSetterCallback, 0, 0, &V8TestInterfaceCheckSecurity::wrapperTypeInfo, v8::ALL_CAN_READ, static_cast<v8 ::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::ExposedToAllScripts, f alse, 497 "doNotCheckSecurityVoidMethod", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityVoidMethodOriginSafeMethodGetterCallback, TestInterfaceCheckSecu rityV8Internal::TestInterfaceCheckSecurityOriginSafeMethodSetterCallback, 0, 0, &V8TestInterfaceCheckSecurity::wrapperTypeInfo, v8::ALL_CAN_READ, static_cast<v8 ::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance,
498 }; 498 };
499 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Handle<v8::Objec tTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfiguration, isol ate); 499 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Handle<v8::Objec tTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfiguration, isol ate);
500 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDo NotCheckSignatureVoidMethodOriginSafeAttributeConfiguration = { 500 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDo NotCheckSignatureVoidMethodOriginSafeAttributeConfiguration = {
501 "doNotCheckSecurityDoNotCheckSignatureVoidMethod", TestInterfaceCheckSec urityV8Internal::doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeMethod GetterCallback, TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurity OriginSafeMethodSetterCallback, 0, 0, &V8TestInterfaceCheckSecurity::wrapperType Info, v8::ALL_CAN_READ, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DO MConfiguration::ExposedToAllScripts, false, 501 "doNotCheckSecurityDoNotCheckSignatureVoidMethod", TestInterfaceCheckSec urityV8Internal::doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeMethod GetterCallback, TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurity OriginSafeMethodSetterCallback, 0, 0, &V8TestInterfaceCheckSecurity::wrapperType Info, v8::ALL_CAN_READ, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DO MConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance,
502 }; 502 };
503 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Handle<v8::Objec tTemplate>(), doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeAttribute Configuration, isolate); 503 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Handle<v8::Objec tTemplate>(), doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeAttribute Configuration, isolate);
504 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPe rWorldBindingsVoidMethodOriginSafeAttributeConfiguration = { 504 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPe rWorldBindingsVoidMethodOriginSafeAttributeConfiguration = {
505 "doNotCheckSecurityPerWorldBindingsVoidMethod", TestInterfaceCheckSecuri tyV8Internal::doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeMethodGetter Callback, TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOrigin SafeMethodSetterCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecuri tyPerWorldBindingsVoidMethodOriginSafeMethodGetterCallbackForMainWorld, TestInte rfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMethodSetterCa llbackForMainWorld, &V8TestInterfaceCheckSecurity::wrapperTypeInfo, v8::ALL_CAN_ READ, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Ex posedToAllScripts, false, 505 "doNotCheckSecurityPerWorldBindingsVoidMethod", TestInterfaceCheckSecuri tyV8Internal::doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeMethodGetter Callback, TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOrigin SafeMethodSetterCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecuri tyPerWorldBindingsVoidMethodOriginSafeMethodGetterCallbackForMainWorld, TestInte rfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMethodSetterCa llbackForMainWorld, &V8TestInterfaceCheckSecurity::wrapperTypeInfo, v8::ALL_CAN_ READ, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnInstance,
506 }; 506 };
507 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Handle<v8::Objec tTemplate>(), doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeAttributeCon figuration, isolate); 507 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Handle<v8::Objec tTemplate>(), doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeAttributeCon figuration, isolate);
508 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityUn forgeableVoidMethodOriginSafeAttributeConfiguration = { 508 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityUn forgeableVoidMethodOriginSafeAttributeConfiguration = {
509 "doNotCheckSecurityUnforgeableVoidMethod", TestInterfaceCheckSecurityV8I nternal::doNotCheckSecurityUnforgeableVoidMethodOriginSafeMethodGetterCallback, 0, 0, 0, &V8TestInterfaceCheckSecurity::wrapperTypeInfo, v8::ALL_CAN_READ, stati c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), V8DOMConfiguration ::ExposedToAllScripts, false, 509 "doNotCheckSecurityUnforgeableVoidMethod", TestInterfaceCheckSecurityV8I nternal::doNotCheckSecurityUnforgeableVoidMethodOriginSafeMethodGetterCallback, 0, 0, 0, &V8TestInterfaceCheckSecurity::wrapperTypeInfo, v8::ALL_CAN_READ, stati c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnInstance,
510 }; 510 };
511 V8DOMConfiguration::installAttribute(instanceTemplate, v8::Handle<v8::Object Template>(), doNotCheckSecurityUnforgeableVoidMethodOriginSafeAttributeConfigura tion, isolate); 511 V8DOMConfiguration::installAttribute(instanceTemplate, v8::Handle<v8::Object Template>(), doNotCheckSecurityUnforgeableVoidMethodOriginSafeAttributeConfigura tion, isolate);
512 512
513 // Custom toString template 513 // Custom toString template
514 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 514 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
515 } 515 }
516 516
517 v8::Handle<v8::FunctionTemplate> V8TestInterfaceCheckSecurity::domTemplate(v8::I solate* isolate) 517 v8::Handle<v8::FunctionTemplate> V8TestInterfaceCheckSecurity::domTemplate(v8::I solate* isolate)
518 { 518 {
519 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceCheckSecurityTemplate); 519 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceCheckSecurityTemplate);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 fromInternalPointer(object)->deref(); 566 fromInternalPointer(object)->deref();
567 } 567 }
568 568
569 template<> 569 template<>
570 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate) 570 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate)
571 { 571 {
572 return toV8(impl, creationContext, isolate); 572 return toV8(impl, creationContext, isolate);
573 } 573 }
574 574
575 } // namespace blink 575 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698