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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm
bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu
rity::derefObject, 0, 0, 0, V8TestInterfaceCheckSecurity::installPerContextEnabl
edMethods, 0, WrapperTypeObjectPrototype, false }; | 40 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm
bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu
rity::derefObject, 0, 0, 0, V8TestInterfaceCheckSecurity::installPerContextEnabl
edMethods, 0, WrapperTypeObjectPrototype, false }; |
41 | 41 |
42 namespace TestInterfaceCheckSecurityV8Internal { | 42 namespace TestInterfaceCheckSecurityV8Internal { |
43 | 43 |
44 template <typename T> void V8_USE(T) { } | 44 template <typename T> void V8_USE(T) { } |
45 | 45 |
46 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 46 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
47 { | 47 { |
48 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in
fo.Holder()); | 48 v8::Handle<v8::Object> holder = info.Holder(); |
| 49 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho
lder); |
49 v8SetReturnValueInt(info, impl->longAttribute()); | 50 v8SetReturnValueInt(info, impl->longAttribute()); |
50 } | 51 } |
51 | 52 |
52 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 53 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
53 { | 54 { |
54 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 55 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
55 TestInterfaceCheckSecurityV8Internal::longAttributeAttributeGetter(info); | 56 TestInterfaceCheckSecurityV8Internal::longAttributeAttributeGetter(info); |
56 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 57 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
57 } | 58 } |
58 | 59 |
59 static void doNotCheckSecurityLongAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 60 static void doNotCheckSecurityLongAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
60 { | 61 { |
61 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in
fo.Holder()); | 62 v8::Handle<v8::Object> holder = info.Holder(); |
| 63 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho
lder); |
62 v8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute()); | 64 v8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute()); |
63 } | 65 } |
64 | 66 |
65 static void doNotCheckSecurityLongAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 67 static void doNotCheckSecurityLongAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
66 { | 68 { |
67 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 69 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
68 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu
teGetter(info); | 70 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu
teGetter(info); |
69 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 71 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
70 } | 72 } |
71 | 73 |
72 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 74 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
73 { | 75 { |
74 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu
rityLongAttribute", "TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate
()); | 76 v8::Handle<v8::Object> holder = info.Holder(); |
75 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in
fo.Holder()); | 77 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu
rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate()); |
| 78 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho
lder); |
76 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 79 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
77 impl->setDoNotCheckSecurityLongAttribute(cppValue); | 80 impl->setDoNotCheckSecurityLongAttribute(cppValue); |
78 } | 81 } |
79 | 82 |
80 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 83 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
81 { | 84 { |
82 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 85 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
83 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu
teSetter(jsValue, info); | 86 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu
teSetter(jsValue, info); |
84 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 87 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
85 } | 88 } |
86 | 89 |
87 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 90 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
88 { | 91 { |
89 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in
fo.Holder()); | 92 v8::Handle<v8::Object> holder = info.Holder(); |
| 93 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho
lder); |
90 v8SetReturnValueInt(info, impl->doNotCheckSecurityReadonlyLongAttribute()); | 94 v8SetReturnValueInt(info, impl->doNotCheckSecurityReadonlyLongAttribute()); |
91 } | 95 } |
92 | 96 |
93 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 97 static void doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
94 { | 98 { |
95 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 99 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
96 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReadonlyLongAttribut
eAttributeGetter(info); | 100 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReadonlyLongAttribut
eAttributeGetter(info); |
97 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
98 } | 102 } |
99 | 103 |
100 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 104 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
101 { | 105 { |
102 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in
fo.Holder()); | 106 v8::Handle<v8::Object> holder = info.Holder(); |
| 107 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho
lder); |
103 v8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute()); | 108 v8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute()); |
104 } | 109 } |
105 | 110 |
106 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 111 static void doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
107 { | 112 { |
108 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
109 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut
eAttributeGetter(info); | 114 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut
eAttributeGetter(info); |
110 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
111 } | 116 } |
112 | 117 |
113 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 118 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
114 { | 119 { |
115 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu
rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", info.Holder(), info.Ge
tIsolate()); | 120 v8::Handle<v8::Object> holder = info.Holder(); |
116 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in
fo.Holder()); | 121 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu
rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat
e()); |
| 122 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho
lder); |
117 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 123 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
118 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); | 124 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); |
119 } | 125 } |
120 | 126 |
121 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L
ocal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v
oid>& info) | 127 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L
ocal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v
oid>& info) |
122 { | 128 { |
123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
124 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut
eAttributeSetter(jsValue, info); | 130 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut
eAttributeSetter(jsValue, info); |
125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
126 } | 132 } |
127 | 133 |
128 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 134 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
129 { | 135 { |
130 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(in
fo.Holder()); | 136 v8::Handle<v8::Object> holder = info.Holder(); |
| 137 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho
lder); |
131 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt
ribute()); | 138 v8SetReturnValueInt(info, impl->doNotCheckSecurityReplaceableReadonlyLongAtt
ribute()); |
132 } | 139 } |
133 | 140 |
134 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 141 static void doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
135 { | 142 { |
136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
137 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL
ongAttributeAttributeGetter(info); | 144 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableReadonlyL
ongAttributeAttributeGetter(info); |
138 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
139 } | 146 } |
140 | 147 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 fromInternalPointer(object)->deref(); | 618 fromInternalPointer(object)->deref(); |
612 } | 619 } |
613 | 620 |
614 template<> | 621 template<> |
615 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle<
v8::Object> creationContext, v8::Isolate* isolate) | 622 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle<
v8::Object> creationContext, v8::Isolate* isolate) |
616 { | 623 { |
617 return toV8(impl, creationContext, isolate); | 624 return toV8(impl, creationContext, isolate); |
618 } | 625 } |
619 | 626 |
620 } // namespace WebCore | 627 } // namespace WebCore |
OLD | NEW |