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

Unified Diff: Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: MessagePort. Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp
diff --git a/Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp b/Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp
index 3a10e0a637926e2261e4dcbae7c1a6471a198c6a..77861d0dede1a7901f0d83f63e4ab870f1ba528e 100644
--- a/Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp
+++ b/Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp
@@ -102,6 +102,7 @@ static void doNotCheckSecurityLongAttributeAttributeGetterCallback(v8::Local<v8:
static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
{
+ ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecurityLongAttribute", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
imp->setDoNotCheckSecurityLongAttribute(cppValue);
@@ -142,6 +143,7 @@ static void doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback(v8::L
static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
{
+ ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecurityOnSetterLongAttribute", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
imp->setDoNotCheckSecurityOnSetterLongAttribute(cppValue);
@@ -168,8 +170,8 @@ bool namedSecurityCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8
static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
- ExceptionState exceptionState(info.Holder(), info.GetIsolate());
if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame(), exceptionState)) {
exceptionState.throwIfNeeded();
return;
@@ -186,6 +188,7 @@ static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
static void doNotCheckSecurityVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckSecurityVoidMethod", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
imp->doNotCheckSecurityVoidMethod();
}
@@ -238,6 +241,7 @@ static void doNotCheckSecurityVoidMethodOriginSafeMethodGetterCallback(v8::Local
static void doNotCheckSecurityPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckSecurityPerWorldBindingsVoidMethod", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
imp->doNotCheckSecurityPerWorldBindingsVoidMethod();
}
@@ -290,6 +294,7 @@ static void doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeMethodGetterCa
static void doNotCheckSecurityPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckSecurityPerWorldBindingsVoidMethod", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
imp->doNotCheckSecurityPerWorldBindingsVoidMethod();
}
@@ -342,6 +347,7 @@ static void doNotCheckSecurityPerWorldBindingsVoidMethodOriginSafeMethodGetterCa
static void doNotCheckSecurityReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckSecurityReadOnlyVoidMethod", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
imp->doNotCheckSecurityReadOnlyVoidMethod();
}
@@ -394,6 +400,7 @@ static void doNotCheckSecurityReadOnlyVoidMethodOriginSafeMethodGetterCallback(v
static void doNotCheckSecurityUnforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckSecurityUnforgeableVoidMethod", "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(info.Holder());
imp->doNotCheckSecurityUnforgeableVoidMethod();
}
@@ -450,7 +457,7 @@ static void TestCheckSecurityInterfaceOriginSafeMethodSetter(v8::Local<v8::Strin
if (holder.IsEmpty())
return;
TestCheckSecurityInterface* imp = V8TestCheckSecurityInterface::toNative(holder);
- ExceptionState exceptionState(info.Holder(), info.GetIsolate());
+ ExceptionState exceptionState(ExceptionState::SetterContext, *v8::String::Utf8Value(name), "TestCheckSecurityInterface", info.Holder(), info.GetIsolate());
if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame(), exceptionState)) {
exceptionState.throwIfNeeded();
return;

Powered by Google App Engine
This is Rietveld 408576698