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

Unified Diff: third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl

Issue 2207423002: Implement '[SecureContext]' IDL attribute for interfaces, methods and attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl
diff --git a/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl b/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl
new file mode 100644
index 0000000000000000000000000000000000000000..e43c2b2ec953a4116a36cca7bd38ab8346f52fa0
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl
@@ -0,0 +1,21 @@
+// 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;
+};

Powered by Google App Engine
This is Rietveld 408576698