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

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

Issue 2745313003: Move securityCheck out of V8WrapperInstantiationScope (Closed)
Patch Set: Stop unecessary includes of BindingSecurity.h Created 3 years, 9 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
11 // clang-format off 11 // clang-format off
12 #include "V8TestInterface5.h" 12 #include "V8TestInterface5.h"
13 13
14 #include "bindings/core/v8/BindingSecurity.h"
14 #include "bindings/core/v8/ExceptionState.h" 15 #include "bindings/core/v8/ExceptionState.h"
15 #include "bindings/core/v8/IDLTypes.h" 16 #include "bindings/core/v8/IDLTypes.h"
16 #include "bindings/core/v8/NativeValueTraitsImpl.h" 17 #include "bindings/core/v8/NativeValueTraitsImpl.h"
17 #include "bindings/core/v8/V8DOMConfiguration.h" 18 #include "bindings/core/v8/V8DOMConfiguration.h"
18 #include "bindings/core/v8/V8ObjectConstructor.h" 19 #include "bindings/core/v8/V8ObjectConstructor.h"
19 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 20 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
20 #include "bindings/modules/v8/BooleanOrString.h" 21 #include "bindings/modules/v8/BooleanOrString.h"
21 #include "bindings/modules/v8/DoubleOrString.h" 22 #include "bindings/modules/v8/DoubleOrString.h"
22 #include "bindings/modules/v8/V8TestInterface5.h" 23 #include "bindings/modules/v8/V8TestInterface5.h"
23 #include "bindings/modules/v8/VoidCallbackFunctionModules.h" 24 #include "bindings/modules/v8/VoidCallbackFunctionModules.h"
24 #include "core/dom/Document.h" 25 #include "core/dom/Document.h"
25 #include "platform/RuntimeEnabledFeatures.h" 26 #include "platform/RuntimeEnabledFeatures.h"
26 #include "wtf/GetPtr.h" 27 #include "wtf/GetPtr.h"
27 #include "wtf/RefPtr.h" 28 #include "wtf/RefPtr.h"
28 29
29 namespace blink { 30 namespace blink {
30 31
31 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 32 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
32 // and does not depend on another global objects. 33 // and does not depend on another global objects.
33 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 34 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
34 #pragma clang diagnostic push 35 #pragma clang diagnostic push
35 #pragma clang diagnostic ignored "-Wglobal-constructors" 36 #pragma clang diagnostic ignored "-Wglobal-constructors"
36 #endif 37 #endif
37 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface5::domTemplate, V8TestInterface5::trace, V8TestInterface5::trace Wrappers, V8TestInterface5::preparePrototypeAndInterfaceObject, "TestInterface5" , &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProt otype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromActiveScriptW rappable, WrapperTypeInfo::Dependent }; 38 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface5::domTemplate, &BindingSecurity::securityCheckForClassesWithout AccessCheckCallbacks, V8TestInterface5::trace, V8TestInterface5::traceWrappers, V8TestInterface5::preparePrototypeAndInterfaceObject, "TestInterface5", &V8TestI nterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wra pperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromActiveScriptWrappable, WrapperTypeInfo::Dependent };
38 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 39 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
39 #pragma clang diagnostic pop 40 #pragma clang diagnostic pop
40 #endif 41 #endif
41 42
42 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac e5Implementation.h. 43 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac e5Implementation.h.
43 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 44 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
44 // bindings/core/v8/ScriptWrappable.h. 45 // bindings/core/v8/ScriptWrappable.h.
45 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI nterface5::wrapperTypeInfo; 46 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI nterface5::wrapperTypeInfo;
46 47
47 // [ActiveScriptWrappable] 48 // [ActiveScriptWrappable]
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; 886 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess};
886 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi guration); 887 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi guration);
887 } 888 }
888 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) { 889 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) {
889 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati on::DoNotCheckAccess}; 890 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati on::DoNotCheckAccess};
890 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM ethodConfiguration); 891 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM ethodConfiguration);
891 } 892 }
892 } 893 }
893 894
894 } // namespace blink 895 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698