| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 v8::Handle<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChai
n(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 530 v8::Handle<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChai
n(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 531 { | 531 { |
| 532 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 532 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 533 } | 533 } |
| 534 | 534 |
| 535 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toNativeWithTypeCheck(
v8::Isolate* isolate, v8::Handle<v8::Value> value) | 535 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toNativeWithTypeCheck(
v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 536 { | 536 { |
| 537 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; | 537 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; |
| 538 } | 538 } |
| 539 | 539 |
| 540 v8::Handle<v8::Object> wrap(TestInterfaceCheckSecurity* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) | |
| 541 { | |
| 542 ASSERT(impl); | |
| 543 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceCheckSecurity>(impl, is
olate)); | |
| 544 return V8TestInterfaceCheckSecurity::createWrapper(impl, creationContext, is
olate); | |
| 545 } | |
| 546 | |
| 547 v8::Handle<v8::Object> V8TestInterfaceCheckSecurity::createWrapper(PassRefPtr<Te
stInterfaceCheckSecurity> impl, v8::Handle<v8::Object> creationContext, v8::Isol
ate* isolate) | |
| 548 { | |
| 549 ASSERT(impl); | |
| 550 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceCheckSecurity>(impl.get
(), isolate)); | |
| 551 const WrapperTypeInfo* actualInfo = impl->typeInfo(); | |
| 552 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapperType
Info. These will both have | |
| 553 // the same object de-ref functions, though, so use that as the basis of the
check. | |
| 554 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction ==
wrapperTypeInfo.derefObjectFunction); | |
| 555 | |
| 556 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | |
| 557 if (UNLIKELY(wrapper.IsEmpty())) | |
| 558 return wrapper; | |
| 559 | |
| 560 installConditionallyEnabledProperties(wrapper, isolate); | |
| 561 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceCheckSecurity>(impl,
&wrapperTypeInfo, wrapper, isolate); | |
| 562 return wrapper; | |
| 563 } | |
| 564 | |
| 565 | 540 |
| 566 void V8TestInterfaceCheckSecurity::refObject(ScriptWrappableBase* internalPointe
r) | 541 void V8TestInterfaceCheckSecurity::refObject(ScriptWrappableBase* internalPointe
r) |
| 567 { | 542 { |
| 568 fromInternalPointer(internalPointer)->ref(); | 543 fromInternalPointer(internalPointer)->ref(); |
| 569 } | 544 } |
| 570 | 545 |
| 571 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappableBase* internalPoin
ter) | 546 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappableBase* internalPoin
ter) |
| 572 { | 547 { |
| 573 fromInternalPointer(internalPointer)->deref(); | 548 fromInternalPointer(internalPointer)->deref(); |
| 574 } | 549 } |
| 575 | 550 |
| 576 PersistentNode* V8TestInterfaceCheckSecurity::createPersistentHandle(ScriptWrapp
ableBase* internalPointer) | 551 PersistentNode* V8TestInterfaceCheckSecurity::createPersistentHandle(ScriptWrapp
ableBase* internalPointer) |
| 577 { | 552 { |
| 578 ASSERT_NOT_REACHED(); | 553 ASSERT_NOT_REACHED(); |
| 579 return 0; | 554 return 0; |
| 580 } | 555 } |
| 581 | 556 |
| 582 template<> | 557 template<> |
| 583 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle<
v8::Object> creationContext, v8::Isolate* isolate) | 558 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle<
v8::Object> creationContext, v8::Isolate* isolate) |
| 584 { | 559 { |
| 585 return toV8(impl, creationContext, isolate); | 560 return toV8(impl, creationContext, isolate); |
| 586 } | 561 } |
| 587 | 562 |
| 588 } // namespace blink | 563 } // namespace blink |
| OLD | NEW |