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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp

Issue 2717183002: Slim V8DOMConfiguration::MethodConfiguration by refactoring per-world bindings. (Closed)
Patch Set: haraken Created 3 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 if (executionContext && (executionContext->isWorkerGlobalScope())) { 405 if (executionContext && (executionContext->isWorkerGlobalScope())) {
406 if (executionContext && (executionContext->isSecureContext())) { 406 if (executionContext && (executionContext->isSecureContext())) {
407 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 407 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
408 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterfaceSecureConte xt::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V8 TestInterfaceSecureContext::secureContextWorkerExposedRuntimeEnabledAttributeAtt ributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Proper tyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder}; 408 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterfaceSecureConte xt::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V8 TestInterfaceSecureContext::secureContextWorkerExposedRuntimeEnabledAttributeAtt ributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Proper tyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder};
409 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration); 409 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration);
410 } 410 }
411 } 411 }
412 } 412 }
413 if (executionContext && (executionContext->isSecureContext())) { 413 if (executionContext && (executionContext->isSecureContext())) {
414 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodConfi guration = {"secureContextMethod", V8TestInterfaceSecureContext::secureContextMe thodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOM Configuration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; 414 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodConfi guration[] = {
415 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, secureContextMethodMethodConfigurati on); 415 {"secureContextMethod", V8TestInterfaceSecureContext::secureContextMethodM ethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration: :CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorld s}
416 };
417 for (const auto& methodConfig : secureContextMethodMethodConfiguration)
418 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodConfig);
416 } 419 }
417 if (executionContext && (executionContext->isSecureContext())) { 420 if (executionContext && (executionContext->isSecureContext())) {
418 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 421 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
419 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnabledM ethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", V8TestInterface SecureContext::secureContextRuntimeEnabledMethodMethodCallback, nullptr, 0, v8:: None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon figuration::DoNotCheckAccess}; 422 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnabledM ethodMethodConfiguration[] = {
420 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMethodM ethodConfiguration); 423 {"secureContextRuntimeEnabledMethod", V8TestInterfaceSecureContext::secu reContextRuntimeEnabledMethodMethodCallback, 0, v8::None, V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess , V8DOMConfiguration::AllWorlds}
424 };
425 for (const auto& methodConfig : secureContextRuntimeEnabledMethodMethodCon figuration)
426 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, methodConfig);
421 } 427 }
422 } 428 }
423 if (executionContext && (executionContext->isSecureContext())) { 429 if (executionContext && (executionContext->isSecureContext())) {
424 if (executionContext && (executionContext->isDocument())) { 430 if (executionContext && (executionContext->isDocument())) {
425 const V8DOMConfiguration::MethodConfiguration secureContextWindowExposedMe thodMethodConfiguration = {"secureContextWindowExposedMethod", V8TestInterfaceSe cureContext::secureContextWindowExposedMethodMethodCallback, nullptr, 0, v8::Non e, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfig uration::DoNotCheckAccess}; 431 const V8DOMConfiguration::MethodConfiguration secureContextWindowExposedMe thodMethodConfiguration[] = {
426 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMethodMe thodConfiguration); 432 {"secureContextWindowExposedMethod", V8TestInterfaceSecureContext::secur eContextWindowExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
433 };
434 for (const auto& methodConfig : secureContextWindowExposedMethodMethodConf iguration)
435 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, methodConfig);
427 } 436 }
428 } 437 }
429 if (executionContext && (executionContext->isSecureContext())) { 438 if (executionContext && (executionContext->isSecureContext())) {
430 if (executionContext && (executionContext->isWorkerGlobalScope())) { 439 if (executionContext && (executionContext->isWorkerGlobalScope())) {
431 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExposedMe thodMethodConfiguration = {"secureContextWorkerExposedMethod", V8TestInterfaceSe cureContext::secureContextWorkerExposedMethodMethodCallback, nullptr, 0, v8::Non e, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfig uration::DoNotCheckAccess}; 440 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExposedMe thodMethodConfiguration[] = {
432 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMethodMe thodConfiguration); 441 {"secureContextWorkerExposedMethod", V8TestInterfaceSecureContext::secur eContextWorkerExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
442 };
443 for (const auto& methodConfig : secureContextWorkerExposedMethodMethodConf iguration)
444 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, methodConfig);
433 } 445 }
434 } 446 }
435 if (executionContext && (executionContext->isSecureContext())) { 447 if (executionContext && (executionContext->isSecureContext())) {
436 if (executionContext && (executionContext->isDocument())) { 448 if (executionContext && (executionContext->isDocument())) {
437 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 449 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
438 const V8DOMConfiguration::MethodConfiguration secureContextWindowExposed RuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRuntimeEna bledMethod", V8TestInterfaceSecureContext::secureContextWindowExposedRuntimeEnab ledMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; 450 const V8DOMConfiguration::MethodConfiguration secureContextWindowExposed RuntimeEnabledMethodMethodConfiguration[] = {
439 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, secureContextWindowExposedRuntim eEnabledMethodMethodConfiguration); 451 {"secureContextWindowExposedRuntimeEnabledMethod", V8TestInterfaceSecu reContext::secureContextWindowExposedRuntimeEnabledMethodMethodCallback, 0, v8:: None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon figuration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
452 };
453 for (const auto& methodConfig : secureContextWindowExposedRuntimeEnabled MethodMethodConfiguration)
454 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, methodConfig);
440 } 455 }
441 } 456 }
442 } 457 }
443 if (executionContext && (executionContext->isSecureContext())) { 458 if (executionContext && (executionContext->isSecureContext())) {
444 if (executionContext && (executionContext->isWorkerGlobalScope())) { 459 if (executionContext && (executionContext->isWorkerGlobalScope())) {
445 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 460 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
446 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExposed RuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRuntimeEna bledMethod", V8TestInterfaceSecureContext::secureContextWorkerExposedRuntimeEnab ledMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; 461 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExposed RuntimeEnabledMethodMethodConfiguration[] = {
447 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, secureContextWorkerExposedRuntim eEnabledMethodMethodConfiguration); 462 {"secureContextWorkerExposedRuntimeEnabledMethod", V8TestInterfaceSecu reContext::secureContextWorkerExposedRuntimeEnabledMethodMethodCallback, 0, v8:: None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon figuration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
463 };
464 for (const auto& methodConfig : secureContextWorkerExposedRuntimeEnabled MethodMethodConfiguration)
465 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, methodConfig);
448 } 466 }
449 } 467 }
450 } 468 }
451 } 469 }
452 470
453 } // namespace blink 471 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698