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

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

Issue 825003002: [bindings] Eliminate usage of Handle<> from interface_base.cpp from bindings template. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bindings-install-v8-class-template
Patch Set: Created 5 years, 12 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 static void TestInterfaceCheckSecurityForceSetAttributeOnThis(v8::Local<v8::Stri ng> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 135 static void TestInterfaceCheckSecurityForceSetAttributeOnThis(v8::Local<v8::Stri ng> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
136 { 136 {
137 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(info .Holder()); 137 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(info .Holder());
138 v8::String::Utf8Value attributeName(name); 138 v8::String::Utf8Value attributeName(name);
139 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate()); 139 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate());
140 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->fram e(), exceptionState)) { 140 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->fram e(), exceptionState)) {
141 exceptionState.throwIfNeeded(); 141 exceptionState.throwIfNeeded();
142 return; 142 return;
143 } 143 }
144 if (info.This()->IsObject()) 144 if (info.This()->IsObject())
145 v8::Handle<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); 145 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value);
146 } 146 }
147 147
148 static void TestInterfaceCheckSecurityForceSetAttributeOnThisCallback(v8::Local< v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info) 148 static void TestInterfaceCheckSecurityForceSetAttributeOnThisCallback(v8::Local< v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info)
149 { 149 {
150 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityForceSetAttr ibuteOnThis(name, v8Value, info); 150 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityForceSetAttr ibuteOnThis(name, v8Value, info);
151 } 151 }
152 152
153 bool indexedSecurityCheck(v8::Local<v8::Object> host, uint32_t index, v8::Access Type type, v8::Local<v8::Value>) 153 bool indexedSecurityCheck(v8::Local<v8::Object> host, uint32_t index, v8::Access Type type, v8::Local<v8::Value>)
154 { 154 {
155 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(host ); 155 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(host );
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 { 526 {
527 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); 527 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref();
528 } 528 }
529 529
530 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) 530 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable)
531 { 531 {
532 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); 532 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref();
533 } 533 }
534 534
535 } // namespace blink 535 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698