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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); |
| 549 ALLOW_UNUSED_LOCAL(context); |
548 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))); |
549 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo
idMethodOriginSafeAttributeConfiguration = { | 551 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo
idMethodOriginSafeAttributeConfiguration = { |
550 "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::OnInstance, |
551 }; | 553 }; |
552 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfigurati
on); | 554 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfigurati
on); |
553 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDo
NotCheckSignatureVoidMethodOriginSafeAttributeConfiguration = { | 555 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityDo
NotCheckSignatureVoidMethodOriginSafeAttributeConfiguration = { |
554 "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::OnInstance, |
555 }; | 557 }; |
556 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeA
ttributeConfiguration); | 558 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityDoNotCheckSignatureVoidMethodOriginSafeA
ttributeConfiguration); |
557 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPe
rWorldBindingsVoidMethodOriginSafeAttributeConfiguration = { | 559 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityPe
rWorldBindingsVoidMethodOriginSafeAttributeConfiguration = { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 { | 593 { |
592 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); | 594 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); |
593 } | 595 } |
594 | 596 |
595 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) | 597 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) |
596 { | 598 { |
597 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); | 599 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); |
598 } | 600 } |
599 | 601 |
600 } // namespace blink | 602 } // namespace blink |
OLD | NEW |