| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| [ |
| SecureContext, |
| Exposed=(Window,Worker) |
| ] interface TestInterfaceSecureContext { |
| void secureContextMethod(); |
| attribute bool secureContextAttribute; |
| [RuntimeEnabled=SecureFeature] void secureContextRuntimeEnabledMethod(); |
| [RuntimeEnabled=SecureFeature] attribute bool secureContextRuntimeEnabledAttribute; |
| [Exposed=Window] void secureContextWindowExposedMethod(); |
| [Exposed=Window] attribute bool secureContextWindowExposedAttribute; |
| [Exposed=Worker] void secureContextWorkerExposedMethod(); |
| [Exposed=Worker] attribute bool secureContextWorkerExposedAttribute; |
| [Exposed=Window,RuntimeEnabled=SecureFeature] void secureContextWindowExposedRuntimeEnabledMethod(); |
| [Exposed=Window,RuntimeEnabled=SecureFeature] attribute bool secureContextWindowExposedRuntimeEnabledAttribute; |
| [Exposed=Worker,RuntimeEnabled=SecureFeature] void secureContextWorkerExposedRuntimeEnabledMethod(); |
| [Exposed=Worker,RuntimeEnabled=SecureFeature] attribute bool secureContextWorkerExposedRuntimeEnabledAttribute; |
| }; |