OLD | NEW |
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 // clang-format off | 8 // clang-format off |
9 #include "V8TestInterfaceSecureContext.h" | 9 #include "V8TestInterfaceSecureContext.h" |
10 | 10 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 395 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
396 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat
ion = {"secureContextWorkerExposedRuntimeEnabledAttribute", TestInterfaceSecureC
ontextV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGett
erCallback, TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRunt
imeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 396 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat
ion = {"secureContextWorkerExposedRuntimeEnabledAttribute", TestInterfaceSecureC
ontextV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGett
erCallback, TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRunt
imeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
397 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::
Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); | 397 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::
Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); |
398 } | 398 } |
399 } | 399 } |
400 } | 400 } |
401 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 401 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
402 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); | 402 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); |
403 DCHECK(executionContext); | 403 DCHECK(executionContext); |
404 if (executionContext && (executionContext->isSecureContext())) { | 404 if (executionContext && (executionContext->isSecureContext())) { |
405 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodCon
figuration = {"secureContextMethod", TestInterfaceSecureContextV8Internal::secur
eContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype}; | 405 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodCon
figuration = {"secureContextMethod", TestInterfaceSecureContextV8Internal::secur
eContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
406 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, secureContextMethodMethodConfigura
tion); | 406 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, secureContextMethodMethodConfigura
tion); |
407 } | 407 } |
408 if (executionContext && (executionContext->isSecureContext())) { | 408 if (executionContext && (executionContext->isSecureContext())) { |
409 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 409 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
410 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnab
ledMethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", TestInterfa
ceSecureContextV8Internal::secureContextRuntimeEnabledMethodMethodCallback, 0, 0
, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto
type}; | 410 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnab
ledMethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", TestInterfa
ceSecureContextV8Internal::secureContextRuntimeEnabledMethodMethodCallback, 0, 0
, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto
type, V8DOMConfiguration::CheckHolder}; |
411 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMet
hodMethodConfiguration); | 411 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMet
hodMethodConfiguration); |
412 } | 412 } |
413 } | 413 } |
414 if (executionContext && (executionContext->isSecureContext())) { | 414 if (executionContext && (executionContext->isSecureContext())) { |
415 if (executionContext && (executionContext->isDocument())) { | 415 if (executionContext && (executionContext->isDocument())) { |
416 const V8DOMConfiguration::MethodConfiguration secureContextWindowExpos
edMethodMethodConfiguration = {"secureContextWindowExposedMethod", TestInterface
SecureContextV8Internal::secureContextWindowExposedMethodMethodCallback, 0, 0, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}; | 416 const V8DOMConfiguration::MethodConfiguration secureContextWindowExpos
edMethodMethodConfiguration = {"secureContextWindowExposedMethod", TestInterface
SecureContextV8Internal::secureContextWindowExposedMethodMethodCallback, 0, 0, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e, V8DOMConfiguration::CheckHolder}; |
417 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMeth
odMethodConfiguration); | 417 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMeth
odMethodConfiguration); |
418 } | 418 } |
419 } | 419 } |
420 if (executionContext && (executionContext->isSecureContext())) { | 420 if (executionContext && (executionContext->isSecureContext())) { |
421 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 421 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
422 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExpos
edMethodMethodConfiguration = {"secureContextWorkerExposedMethod", TestInterface
SecureContextV8Internal::secureContextWorkerExposedMethodMethodCallback, 0, 0, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}; | 422 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExpos
edMethodMethodConfiguration = {"secureContextWorkerExposedMethod", TestInterface
SecureContextV8Internal::secureContextWorkerExposedMethodMethodCallback, 0, 0, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e, V8DOMConfiguration::CheckHolder}; |
423 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMeth
odMethodConfiguration); | 423 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMeth
odMethodConfiguration); |
424 } | 424 } |
425 } | 425 } |
426 if (executionContext && (executionContext->isSecureContext())) { | 426 if (executionContext && (executionContext->isSecureContext())) { |
427 if (executionContext && (executionContext->isDocument())) { | 427 if (executionContext && (executionContext->isDocument())) { |
428 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 428 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
429 const V8DOMConfiguration::MethodConfiguration secureContextWindowE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRunt
imeEnabledMethod", TestInterfaceSecureContextV8Internal::secureContextWindowExpo
sedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnPrototype}; | 429 const V8DOMConfiguration::MethodConfiguration secureContextWindowE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRunt
imeEnabledMethod", TestInterfaceSecureContextV8Internal::secureContextWindowExpo
sedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder
}; |
430 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWindowExposed
RuntimeEnabledMethodMethodConfiguration); | 430 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWindowExposed
RuntimeEnabledMethodMethodConfiguration); |
431 } | 431 } |
432 } | 432 } |
433 } | 433 } |
434 if (executionContext && (executionContext->isSecureContext())) { | 434 if (executionContext && (executionContext->isSecureContext())) { |
435 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 435 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
436 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 436 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
437 const V8DOMConfiguration::MethodConfiguration secureContextWorkerE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRunt
imeEnabledMethod", TestInterfaceSecureContextV8Internal::secureContextWorkerExpo
sedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnPrototype}; | 437 const V8DOMConfiguration::MethodConfiguration secureContextWorkerE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRunt
imeEnabledMethod", TestInterfaceSecureContextV8Internal::secureContextWorkerExpo
sedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder
}; |
438 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposed
RuntimeEnabledMethodMethodConfiguration); | 438 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposed
RuntimeEnabledMethodMethodConfiguration); |
439 } | 439 } |
440 } | 440 } |
441 } | 441 } |
442 } | 442 } |
443 | 443 |
444 } // namespace blink | 444 } // namespace blink |
OLD | NEW |