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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp

Issue 946973005: IDL: Drop value conversion (V8 -> C++) macros from generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 10 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 #include "V8TestInterfaceCheckSecurity.h" 8 #include "V8TestInterfaceCheckSecurity.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 56 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
57 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info); 57 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info);
58 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 58 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
59 } 59 }
60 60
61 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 61 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
62 { 62 {
63 v8::Local<v8::Object> holder = info.Holder(); 63 v8::Local<v8::Object> holder = info.Holder();
64 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate()); 64 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate());
65 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er); 65 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er);
66 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 66 int cppValue = toInt32(v8Value, exceptionState);
67 if (exceptionState.throwIfNeeded())
68 return;
67 impl->setDoNotCheckSecurityLongAttribute(cppValue); 69 impl->setDoNotCheckSecurityLongAttribute(cppValue);
68 } 70 }
69 71
70 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 72 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
71 { 73 {
72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 74 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
73 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(v8Value, info); 75 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(v8Value, info);
74 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 76 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
75 } 77 }
76 78
(...skipping 23 matching lines...) Expand all
100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 102 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
101 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info); 103 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info);
102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 104 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
103 } 105 }
104 106
105 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 107 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
106 { 108 {
107 v8::Local<v8::Object> holder = info.Holder(); 109 v8::Local<v8::Object> holder = info.Holder();
108 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e()); 110 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e());
109 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er); 111 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er);
110 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 112 int cppValue = toInt32(v8Value, exceptionState);
113 if (exceptionState.throwIfNeeded())
114 return;
111 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); 115 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue);
112 } 116 }
113 117
114 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info) 118 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info)
115 { 119 {
116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
117 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(v8Value, info); 121 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(v8Value, info);
118 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
119 } 123 }
120 124
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 { 530 {
527 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); 531 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref();
528 } 532 }
529 533
530 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) 534 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable)
531 { 535 {
532 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); 536 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref();
533 } 537 }
534 538
535 } // namespace blink 539 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698