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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface.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, 4 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 "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 2213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
2214 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); 2214 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info);
2215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2216 } 2216 }
2217 2217
2218 } // namespace TestInterfaceImplementationV8Internal 2218 } // namespace TestInterfaceImplementationV8Internal
2219 2219
2220 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr iptWrappable, const v8::Persistent<v8::Object>& wrapper) 2220 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr iptWrappable, const v8::Persistent<v8::Object>& wrapper)
2221 { 2221 {
2222 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp lementation>(); 2222 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp lementation>();
2223 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 2223 v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper) ;
2224 V8WrapperInstantiationScope scope(creationContext, isolate); 2224 v8::Context::Scope scope(context->CreationContext());
2225 TestInterfaceImplementation* referencedName = impl->referencedName(); 2225 TestInterfaceImplementation* referencedName = impl->referencedName();
2226 if (referencedName) { 2226 if (referencedName) {
2227 if (DOMDataStore::containsWrapper(referencedName, isolate)) 2227 if (DOMDataStore::containsWrapper(referencedName, isolate))
2228 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); 2228 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
2229 } 2229 }
2230 } 2230 }
2231 2231
2232 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 2232 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
2233 // and does not depend on another global objects. 2233 // and does not depend on another global objects.
2234 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 2234 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2671 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2672 { 2672 {
2673 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2673 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2674 } 2674 }
2675 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2675 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2676 { 2676 {
2677 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2677 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2678 } 2678 }
2679 } // namespace blink 2679 } // namespace blink
2680 #endif // ENABLE(CONDITION) 2680 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698