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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm
bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu
rity::refObject, V8TestInterfaceCheckSecurity::derefObject, V8TestInterfaceCheck
Security::trace, 0, 0, V8TestInterfaceCheckSecurity::installConditionallyEnabled
Methods, V8TestInterfaceCheckSecurity::installConditionallyEnabledProperties, 0,
WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, Wr
apperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperT
ypeInfo::RefCountedObject }; | 24 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm
bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu
rity::refObject, V8TestInterfaceCheckSecurity::derefObject, V8TestInterfaceCheck
Security::trace, 0, 0, V8TestInterfaceCheckSecurity::installConditionallyEnabled
Methods, V8TestInterfaceCheckSecurity::installConditionallyEnabledProperties, 0,
WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, Wr
apperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperT
ypeInfo::RefCountedObject }; |
25 | 25 |
26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eCheckSecurity.h. | 26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eCheckSecurity.h. |
27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
28 // bindings/core/v8/ScriptWrappable.h. | 28 // bindings/core/v8/ScriptWrappable.h. |
29 const WrapperTypeInfo& TestInterfaceCheckSecurity::s_wrapperTypeInfo = V8TestInt
erfaceCheckSecurity::wrapperTypeInfo; | 29 const WrapperTypeInfo& TestInterfaceCheckSecurity::s_wrapperTypeInfo = V8TestInt
erfaceCheckSecurity::wrapperTypeInfo; |
30 | 30 |
31 namespace TestInterfaceCheckSecurityV8Internal { | 31 namespace TestInterfaceCheckSecurityV8Internal { |
32 | 32 |
| 33 template<class CallbackInfo> |
| 34 static void TestInterfaceCheckSecurityForceSetAttributeOnThis(v8::Local<v8::Stri
ng> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info) |
| 35 { |
| 36 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(info
.Holder()); |
| 37 v8::String::Utf8Value attributeName(name); |
| 38 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName,
"TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate()); |
| 39 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->fram
e(), exceptionState)) { |
| 40 exceptionState.throwIfNeeded(); |
| 41 return; |
| 42 } |
| 43 if (info.This()->IsObject()) |
| 44 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
| 45 } |
| 46 |
33 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 47 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
34 { | 48 { |
35 v8::Local<v8::Object> holder = info.Holder(); | 49 v8::Local<v8::Object> holder = info.Holder(); |
36 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold
er); | 50 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold
er); |
37 v8SetReturnValueInt(info, impl->longAttribute()); | 51 v8SetReturnValueInt(info, impl->longAttribute()); |
38 } | 52 } |
39 | 53 |
40 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 54 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
41 { | 55 { |
42 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 56 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt
ribute()); | 143 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt
ribute()); |
130 } | 144 } |
131 | 145 |
132 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 146 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
133 { | 147 { |
134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 148 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
135 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL
ongAttributeAttributeGetter(info); | 149 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL
ongAttributeAttributeGetter(info); |
136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 150 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
137 } | 151 } |
138 | 152 |
139 static void TestInterfaceCheckSecurityForceSetAttributeOnThis(v8::Local<v8::Stri
ng> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 153 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
140 { | 154 { |
141 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(info
.Holder()); | 155 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "doNo
tCheckSecurityReplaceableReadonlyLongAttribute"); |
142 v8::String::Utf8Value attributeName(name); | 156 TestInterfaceCheckSecurityForceSetAttributeOnThis(propertyName, v8Value, inf
o); |
143 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName,
"TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate()); | |
144 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->fram
e(), exceptionState)) { | |
145 exceptionState.throwIfNeeded(); | |
146 return; | |
147 } | |
148 if (info.This()->IsObject()) | |
149 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); | |
150 } | 157 } |
151 | 158 |
152 static void TestInterfaceCheckSecurityForceSetAttributeOnThisCallback(v8::Local<
v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v
oid>& info) | 159 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
153 { | 160 { |
154 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityForceSetAttr
ibuteOnThis(name, v8Value, info); | 161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 162 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL
ongAttributeAttributeSetter(v8Value, info); |
| 163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 164 } |
| 165 |
| 166 static void doNotCheckSecurityReplaceableReadonlyLongAccessorAttributeGetter(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
| 167 { |
| 168 v8::Local<v8::Object> holder = info.Holder(); |
| 169 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold
er); |
| 170 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAcc
essor()); |
| 171 } |
| 172 |
| 173 static void doNotCheckSecurityReplaceableReadonlyLongAccessorAttributeGetterCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 174 { |
| 175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 176 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL
ongAccessorAttributeGetter(info); |
| 177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 178 } |
| 179 |
| 180 static void doNotCheckSecurityReplaceableReadonlyLongAccessorAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
| 181 { |
| 182 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "doNo
tCheckSecurityReplaceableReadonlyLongAccessor"); |
| 183 TestInterfaceCheckSecurityForceSetAttributeOnThis(propertyName, v8Value, inf
o); |
| 184 } |
| 185 |
| 186 static void doNotCheckSecurityReplaceableReadonlyLongAccessorAttributeSetterCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 187 { |
| 188 v8::Local<v8::Value> v8Value = info[0]; |
| 189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 190 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL
ongAccessorAttributeSetter(v8Value, info); |
| 191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
155 } | 192 } |
156 | 193 |
157 bool indexedSecurityCheck(v8::Local<v8::Object> host, uint32_t index, v8::Access
Type type, v8::Local<v8::Value>) | 194 bool indexedSecurityCheck(v8::Local<v8::Object> host, uint32_t index, v8::Access
Type type, v8::Local<v8::Value>) |
158 { | 195 { |
159 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(host
); | 196 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(host
); |
160 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(),
impl->frame(), DoNotReportSecurityError); | 197 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(),
impl->frame(), DoNotReportSecurityError); |
161 } | 198 } |
162 | 199 |
163 bool namedSecurityCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8
::AccessType type, v8::Local<v8::Value>) | 200 bool namedSecurityCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8
::AccessType type, v8::Local<v8::Value>) |
164 { | 201 { |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 494 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
458 } | 495 } |
459 | 496 |
460 } // namespace TestInterfaceCheckSecurityV8Internal | 497 } // namespace TestInterfaceCheckSecurityV8Internal |
461 | 498 |
462 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceCheckSecu
rityAttributes[] = { | 499 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceCheckSecu
rityAttributes[] = { |
463 {"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}, | 500 {"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}, |
464 {"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}, | 501 {"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}, |
465 {"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}, | 502 {"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}, |
466 {"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}, | 503 {"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}, |
467 {"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}, | 504 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec
urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett
erCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableR
eadonlyLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc
e}, |
| 505 }; |
| 506 |
| 507 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecur
ityAccessors[] = { |
| 508 {"doNotCheckSecurityReplaceableReadonlyLongAccessor", TestInterfaceCheckSecu
rityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAccessorAttributeGetter
Callback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableRea
donlyLongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts}, |
468 }; | 509 }; |
469 | 510 |
470 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurit
yMethods[] = { | 511 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurit
yMethods[] = { |
471 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 512 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
472 }; | 513 }; |
473 | 514 |
474 static void installV8TestInterfaceCheckSecurityTemplate(v8::Local<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) | 515 static void installV8TestInterfaceCheckSecurityTemplate(v8::Local<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) |
475 { | 516 { |
476 functionTemplate->ReadOnlyPrototype(); | 517 functionTemplate->ReadOnlyPrototype(); |
477 | 518 |
478 v8::Local<v8::Signature> defaultSignature; | 519 v8::Local<v8::Signature> defaultSignature; |
479 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceCheckSecurity", v8::Local<v8::FunctionTemplate>(), V
8TestInterfaceCheckSecurity::internalFieldCount, | 520 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceCheckSecurity", v8::Local<v8::FunctionTemplate>(), V
8TestInterfaceCheckSecurity::internalFieldCount, |
480 V8TestInterfaceCheckSecurityAttributes, WTF_ARRAY_LENGTH(V8TestInterface
CheckSecurityAttributes), | 521 V8TestInterfaceCheckSecurityAttributes, WTF_ARRAY_LENGTH(V8TestInterface
CheckSecurityAttributes), |
481 0, 0, | 522 V8TestInterfaceCheckSecurityAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceC
heckSecurityAccessors), |
482 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe
ckSecurityMethods)); | 523 V8TestInterfaceCheckSecurityMethods, WTF_ARRAY_LENGTH(V8TestInterfaceChe
ckSecurityMethods)); |
483 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 524 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
484 ALLOW_UNUSED_LOCAL(instanceTemplate); | 525 ALLOW_UNUSED_LOCAL(instanceTemplate); |
485 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 526 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
486 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 527 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
487 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern
al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe
ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec
kSecurity::wrapperTypeInfo))); | 528 instanceTemplate->SetAccessCheckCallbacks(TestInterfaceCheckSecurityV8Intern
al::namedSecurityCheck, TestInterfaceCheckSecurityV8Internal::indexedSecurityChe
ck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&V8TestInterfaceChec
kSecurity::wrapperTypeInfo))); |
488 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo
idMethodOriginSafeAttributeConfiguration = { | 529 static const V8DOMConfiguration::AttributeConfiguration doNotCheckSecurityVo
idMethodOriginSafeAttributeConfiguration = { |
489 "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, | 530 "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, |
490 }; | 531 }; |
491 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfigurati
on); | 532 V8DOMConfiguration::installAttribute(isolate, prototypeTemplate, v8::Local<v
8::ObjectTemplate>(), doNotCheckSecurityVoidMethodOriginSafeAttributeConfigurati
on); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 { | 571 { |
531 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); | 572 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); |
532 } | 573 } |
533 | 574 |
534 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) | 575 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) |
535 { | 576 { |
536 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); | 577 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); |
537 } | 578 } |
538 | 579 |
539 } // namespace blink | 580 } // namespace blink |
OLD | NEW |