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

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

Issue 922233002: bindings: Makes runtime-enabled attributes on prototype chains compilable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. Created 5 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 | 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 0, 0, 477 0, 0,
478 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe ckSecurityMethods)); 478 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe ckSecurityMethods));
479 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 479 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
480 ALLOW_UNUSED_LOCAL(instanceTemplate); 480 ALLOW_UNUSED_LOCAL(instanceTemplate);
481 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 481 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
482 ALLOW_UNUSED_LOCAL(prototypeTemplate); 482 ALLOW_UNUSED_LOCAL(prototypeTemplate);
483 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec kSecurity::wrapperTypeInfo))); 483 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec kSecurity::wrapperTypeInfo)));
484 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo idMethodOriginSafeAttributeConfiguration = { 484 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo idMethodOriginSafeAttributeConfiguration = {
485 "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, 485 "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,
486 }; 486 };
487 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Local<v8::Object Template>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfiguration, isola te); 487 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v 8::ObjectTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfigurati on);
488 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDo NotCheckSignatureVoidMethodOriginSafeAttributeConfiguration = { 488 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDo NotCheckSignatureVoidMethodOriginSafeAttributeConfiguration = {
489 "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, 489 "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,
490 }; 490 };
491 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Local<v8::Object Template>(), doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeAttributeC onfiguration, isolate); 491 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v 8::ObjectTemplate>(), doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeA ttributeConfiguration);
492 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPe rWorldBindingsVoidMethodOriginSafeAttributeConfiguration = { 492 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPe rWorldBindingsVoidMethodOriginSafeAttributeConfiguration = {
493 "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, 493 "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,
494 }; 494 };
495 V8DOMConfiguration::installAttribute(prototypeTemplate, v8::Local<v8::Object Template>(), doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeAttributeConf iguration, isolate); 495 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v 8::ObjectTemplate>(), doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeAttr ibuteConfiguration);
496 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityUn forgeableVoidMethodOriginSafeAttributeConfiguration = { 496 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityUn forgeableVoidMethodOriginSafeAttributeConfiguration = {
497 "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, 497 "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,
498 }; 498 };
499 V8DOMConfiguration::installAttribute(instanceTemplate, v8::Local<v8::ObjectT emplate>(), doNotCheckSecurityUnforgeableVoidMethodOriginSafeAttributeConfigurat ion, isolate); 499 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, v8::Local<v8 ::ObjectTemplate>(), doNotCheckSecurityUnforgeableVoidMethodOriginSafeAttributeC onfiguration);
500 500
501 // Custom toString template 501 // Custom toString template
502 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 502 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
503 } 503 }
504 504
505 v8::Local<v8::FunctionTemplate> V8TestInterfaceCheckSecurity::domTemplate(v8::Is olate* isolate) 505 v8::Local<v8::FunctionTemplate> V8TestInterfaceCheckSecurity::domTemplate(v8::Is olate* isolate)
506 { 506 {
507 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceCheckSecurityTemplate); 507 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceCheckSecurityTemplate);
508 } 508 }
509 509
(...skipping 16 matching lines...) Expand all
526 { 526 {
527 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); 527 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref();
528 } 528 }
529 529
530 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) 530 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable)
531 { 531 {
532 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); 532 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref();
533 } 533 }
534 534
535 } // namespace blink 535 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698