| Index: third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| index 8a645b3054b53ba530623a130a6a7ed23eefcd65..9c82da68f645676faf40bf44f09f110be5531158 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
| @@ -342,6 +342,15 @@ def exposed(member, interface):
|
| return exposure_set.code()
|
|
|
|
|
| +# [SecureContext]
|
| +def secure_context(member, interface):
|
| + """Returns C++ code that checks whether an interface/method/attribute/etc. is exposed
|
| + to the current context."""
|
| + if 'SecureContext' in member.extended_attributes or 'SecureContext' in interface.extended_attributes:
|
| + return "executionContext->isSecureContext()"
|
| + return None
|
| +
|
| +
|
| # [ImplementedAs]
|
| def cpp_name(definition_or_member):
|
| extended_attributes = definition_or_member.extended_attributes
|
|
|