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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceOriginTrialEnabled.cpp

Issue 1873323002: Have bindings layer assume and insist that all interface types are GCed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 "V8TestInterfaceOriginTrialEnabled.h" 7 #include "V8TestInterfaceOriginTrialEnabled.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/V8DOMConfiguration.h" 10 #include "bindings/core/v8/V8DOMConfiguration.h"
11 #include "bindings/core/v8/V8ObjectConstructor.h" 11 #include "bindings/core/v8/V8ObjectConstructor.h"
12 #include "core/dom/Document.h" 12 #include "core/dom/Document.h"
13 #include "core/inspector/ConsoleMessage.h" 13 #include "core/inspector/ConsoleMessage.h"
14 #include "core/origin_trials/OriginTrials.h" 14 #include "core/origin_trials/OriginTrials.h"
15 #include "platform/RuntimeEnabledFeatures.h" 15 #include "platform/RuntimeEnabledFeatures.h"
16 #include "wtf/GetPtr.h" 16 #include "wtf/GetPtr.h"
17 #include "wtf/RefPtr.h" 17 #include "wtf/RefPtr.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 21 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
22 // and does not depend on another global objects. 22 // and does not depend on another global objects.
23 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 23 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
24 #pragma clang diagnostic push 24 #pragma clang diagnostic push
25 #pragma clang diagnostic ignored "-Wglobal-constructors" 25 #pragma clang diagnostic ignored "-Wglobal-constructors"
26 #endif 26 #endif
27 const WrapperTypeInfo V8TestInterfaceOriginTrialEnabled::wrapperTypeInfo = { gin ::kEmbedderBlink, V8TestInterfaceOriginTrialEnabled::domTemplate, V8TestInterfac eOriginTrialEnabled::refObject, V8TestInterfaceOriginTrialEnabled::derefObject, V8TestInterfaceOriginTrialEnabled::trace, 0, 0, V8TestInterfaceOriginTrialEnable d::preparePrototypeAndInterfaceObject, V8TestInterfaceOriginTrialEnabled::instal lConditionallyEnabledProperties, "TestInterfaceOriginTrialEnabled", 0, WrapperTy peInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeI nfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::R efCountedObject }; 27 const WrapperTypeInfo V8TestInterfaceOriginTrialEnabled::wrapperTypeInfo = { gin ::kEmbedderBlink, V8TestInterfaceOriginTrialEnabled::domTemplate, V8TestInterfac eOriginTrialEnabled::trace, 0, 0, V8TestInterfaceOriginTrialEnabled::prepareProt otypeAndInterfaceObject, V8TestInterfaceOriginTrialEnabled::installConditionally EnabledProperties, "TestInterfaceOriginTrialEnabled", 0, WrapperTypeInfo::Wrappe rTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheri tFromEventTarget, WrapperTypeInfo::Independent };
28 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 28 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
29 #pragma clang diagnostic pop 29 #pragma clang diagnostic pop
30 #endif 30 #endif
31 31
32 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eOriginTrialEnabled.h. 32 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eOriginTrialEnabled.h.
33 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 33 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
34 // bindings/core/v8/ScriptWrappable.h. 34 // bindings/core/v8/ScriptWrappable.h.
35 const WrapperTypeInfo& TestInterfaceOriginTrialEnabled::s_wrapperTypeInfo = V8Te stInterfaceOriginTrialEnabled::wrapperTypeInfo; 35 const WrapperTypeInfo& TestInterfaceOriginTrialEnabled::s_wrapperTypeInfo = V8Te stInterfaceOriginTrialEnabled::wrapperTypeInfo;
36 36
37 namespace TestInterfaceOriginTrialEnabledV8Internal { 37 namespace TestInterfaceOriginTrialEnabledV8Internal {
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 v8::Local<v8::Object> V8TestInterfaceOriginTrialEnabled::findInstanceInPrototype Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) 274 v8::Local<v8::Object> V8TestInterfaceOriginTrialEnabled::findInstanceInPrototype Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
275 { 275 {
276 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 276 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
277 } 277 }
278 278
279 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) 279 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
280 { 280 {
281 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0; 281 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
282 } 282 }
283 283
284 void V8TestInterfaceOriginTrialEnabled::refObject(ScriptWrappable* scriptWrappab le)
285 {
286 scriptWrappable->toImpl<TestInterfaceOriginTrialEnabled>()->ref();
287 }
288
289 void V8TestInterfaceOriginTrialEnabled::derefObject(ScriptWrappable* scriptWrapp able)
290 {
291 scriptWrappable->toImpl<TestInterfaceOriginTrialEnabled>()->deref();
292 }
293
294 } // namespace blink 284 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698