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

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

Issue 1011093002: [bindings] Pass NormalConversion to to[U]Int{8/16/32/64}(...) in v8_types.py and reduce conversion … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing after review comments! :) Created 5 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. 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 70 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
71 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info); 71 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info);
72 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 72 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
73 } 73 }
74 74
75 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 75 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
76 { 76 {
77 v8::Local<v8::Object> holder = info.Holder(); 77 v8::Local<v8::Object> holder = info.Holder();
78 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate()); 78 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate());
79 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er); 79 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er);
80 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 80 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
81 if (exceptionState.throwIfNeeded()) 81 if (exceptionState.throwIfNeeded())
82 return; 82 return;
83 impl->setDoNotCheckSecurityLongAttribute(cppValue); 83 impl->setDoNotCheckSecurityLongAttribute(cppValue);
84 } 84 }
85 85
86 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 86 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
87 { 87 {
88 v8::Local<v8::Value> v8Value = info[0]; 88 v8::Local<v8::Value> v8Value = info[0];
89 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 89 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
90 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(v8Value, info); 90 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(v8Value, info);
(...skipping 26 matching lines...) Expand all
117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
118 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info); 118 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info);
119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
120 } 120 }
121 121
122 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 122 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
123 { 123 {
124 v8::Local<v8::Object> holder = info.Holder(); 124 v8::Local<v8::Object> holder = info.Holder();
125 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e()); 125 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e());
126 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er); 126 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er);
127 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 127 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
128 if (exceptionState.throwIfNeeded()) 128 if (exceptionState.throwIfNeeded())
129 return; 129 return;
130 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); 130 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue);
131 } 131 }
132 132
133 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 133 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
134 { 134 {
135 v8::Local<v8::Value> v8Value = info[0]; 135 v8::Local<v8::Value> v8Value = info[0];
136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
137 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(v8Value, info); 137 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(v8Value, info);
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 { 571 {
572 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); 572 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref();
573 } 573 }
574 574
575 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) 575 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable)
576 { 576 {
577 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); 577 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref();
578 } 578 }
579 579
580 } // namespace blink 580 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698