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

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 1262353002: Add access checks to V8WrapperInstationScope. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update Created 5 years, 3 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
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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface5.h" 9 #include "V8TestInterface5.h"
10 10
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
901 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); 901 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info);
902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
903 } 903 }
904 904
905 } // namespace TestInterface5ImplementationV8Internal 905 } // namespace TestInterface5ImplementationV8Internal
906 906
907 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper) 907 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper)
908 { 908 {
909 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>(); 909 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>();
910 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 910 v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper) ;
911 V8WrapperInstantiationScope scope(creationContext, isolate); 911 v8::Context::Scope scope(context->CreationContext());
912 TestInterface5Implementation* referencedName = impl->referencedName(); 912 TestInterface5Implementation* referencedName = impl->referencedName();
913 if (referencedName) { 913 if (referencedName) {
914 if (DOMDataStore::containsWrapper(referencedName, isolate)) 914 if (DOMDataStore::containsWrapper(referencedName, isolate))
915 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); 915 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
916 } 916 }
917 } 917 }
918 918
919 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 919 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
920 // and does not depend on another global objects. 920 // and does not depend on another global objects.
921 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 921 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 1076 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
1077 } 1077 }
1078 1078
1079 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 1079 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
1080 { 1080 {
1081 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 1081 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
1082 } 1082 }
1083 1083
1084 } // namespace blink 1084 } // namespace blink
1085 #endif // ENABLE(CONDITION) 1085 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698