OLD | NEW |
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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecurityAcce
ssors[] = { | 522 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecurityAcce
ssors[] = { |
523 {"readonlyLongAttribute", TestInterfaceCheckSecurityV8Internal::readonlyLong
AttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::Prope
rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura
tion::OnPrototype, V8DOMConfiguration::CheckHolder}, | 523 {"readonlyLongAttribute", TestInterfaceCheckSecurityV8Internal::readonlyLong
AttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::Prope
rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura
tion::OnPrototype, V8DOMConfiguration::CheckHolder}, |
524 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu
teGetterCallback, TestInterfaceCheckSecurityV8Internal::longAttributeAttributeSe
tterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, | 524 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu
teGetterCallback, TestInterfaceCheckSecurityV8Internal::longAttributeAttributeSe
tterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, |
525 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do
NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity
V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, v8:
:DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}, | 525 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do
NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity
V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, v8:
:DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}, |
526 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0
, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:
:ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check
Holder}, | 526 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0
, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:
:ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check
Holder}, |
527 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf
aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett
erCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder}, | 527 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf
aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett
erCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder}, |
528 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec
urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett
erCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableR
eadonlyLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC
onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 528 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec
urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett
erCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableR
eadonlyLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC
onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
529 }; | 529 }; |
530 | 530 |
531 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurityMethod
s[] = { | 531 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurityMethod
s[] = { |
532 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 532 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}, |
533 }; | 533 }; |
534 | 534 |
535 static void installV8TestInterfaceCheckSecurityTemplate(v8::Local<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) | 535 static void installV8TestInterfaceCheckSecurityTemplate(v8::Local<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) |
536 { | 536 { |
537 functionTemplate->ReadOnlyPrototype(); | 537 functionTemplate->ReadOnlyPrototype(); |
538 | 538 |
539 v8::Local<v8::Signature> defaultSignature; | 539 v8::Local<v8::Signature> defaultSignature; |
540 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceCheckSecurity", v8::Local<v8::FunctionTemplate>(), V
8TestInterfaceCheckSecurity::internalFieldCount, | 540 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceCheckSecurity", v8::Local<v8::FunctionTemplate>(), V
8TestInterfaceCheckSecurity::internalFieldCount, |
541 0, 0, | 541 0, 0, |
542 V8TestInterfaceCheckSecurityAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceC
heckSecurityAccessors), | 542 V8TestInterfaceCheckSecurityAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceC
heckSecurityAccessors), |
543 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe
ckSecurityMethods)); | 543 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe
ckSecurityMethods)); |
544 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 544 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
545 ALLOW_UNUSED_LOCAL(instanceTemplate); | 545 ALLOW_UNUSED_LOCAL(instanceTemplate); |
546 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 546 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
547 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 547 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
548 ExecutionContext* context = currentExecutionContext(isolate); | 548 ExecutionContext* context = currentExecutionContext(isolate); |
549 ALLOW_UNUSED_LOCAL(context); | 549 ALLOW_UNUSED_LOCAL(context); |
550 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern
al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe
ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec
kSecurity::wrapperTypeInfo))); | 550 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern
al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe
ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec
kSecurity::wrapperTypeInfo))); |
551 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVoidMetho
dOriginSafeAttributeConfiguration = { | 551 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVoidMetho
dOriginSafeAttributeConfiguration = { |
552 "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, | 552 "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::OnPrototype, V8DOMConfiguration::CheckHolder, |
553 }; | 553 }; |
554 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfigurati
on); | 554 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototypeTem
plate, doNotCheckSecurityVoidMethodOriginSafeAttributeConfiguration); |
555 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDoNotChec
kSignatureVoidMethodOriginSafeAttributeConfiguration = { | 555 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDoNotChec
kSignatureVoidMethodOriginSafeAttributeConfiguration = { |
556 "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, | 556 "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::OnPrototype, V8DOMConfi
guration::DoNotCheckHolder, |
557 }; | 557 }; |
558 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeA
ttributeConfiguration); | 558 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototypeTem
plate, doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeAttributeConfigu
ration); |
559 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPerWorldB
indingsVoidMethodOriginSafeAttributeConfiguration = { | 559 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPerWorldB
indingsVoidMethodOriginSafeAttributeConfiguration = { |
560 "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, | 560 "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::OnPrototype, V8DOMConfiguration::CheckHol
der, |
561 }; | 561 }; |
562 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeAttr
ibuteConfiguration); | 562 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototypeTem
plate, doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeAttributeConfigurat
ion); |
563 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityUnforgeab
leVoidMethodOriginSafeAttributeConfiguration = { | 563 const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityUnforgeab
leVoidMethodOriginSafeAttributeConfiguration = { |
564 "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, | 564 "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, V8DOMConfiguration::Check
Holder, |
565 }; | 565 }; |
566 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, v8::Local<v8
::ObjectTemplate>(), doNotCheckSecurityUnforgeableVoidMethodOriginSafeAttributeC
onfiguration); | 566 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototypeTem
plate, doNotCheckSecurityUnforgeableVoidMethodOriginSafeAttributeConfiguration); |
567 | 567 |
568 // Custom toString template | 568 // Custom toString template |
569 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 569 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
570 } | 570 } |
571 | 571 |
572 v8::Local<v8::FunctionTemplate> V8TestInterfaceCheckSecurity::domTemplate(v8::Is
olate* isolate) | 572 v8::Local<v8::FunctionTemplate> V8TestInterfaceCheckSecurity::domTemplate(v8::Is
olate* isolate) |
573 { | 573 { |
574 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceCheckSecurityTemplate); | 574 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceCheckSecurityTemplate); |
575 } | 575 } |
576 | 576 |
(...skipping 16 matching lines...) Expand all Loading... |
593 { | 593 { |
594 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); | 594 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); |
595 } | 595 } |
596 | 596 |
597 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) | 597 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) |
598 { | 598 { |
599 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); | 599 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); |
600 } | 600 } |
601 | 601 |
602 } // namespace blink | 602 } // namespace blink |
OLD | NEW |