Index: components/web_restrictions/interfaces/web_restrictions.mojom |
diff --git a/components/web_restrictions/interfaces/web_restrictions.mojom b/components/web_restrictions/interfaces/web_restrictions.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e27e7d04f0b04094585dcbff9e415a150867144d |
--- /dev/null |
+++ b/components/web_restrictions/interfaces/web_restrictions.mojom |
@@ -0,0 +1,17 @@ |
+// 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. |
+ |
+module web_restrictions.mojom; |
+ |
+struct ClientResult { |
+ map<string, int32> intParams; |
+ map<string, string> stringParams; |
+}; |
+ |
+interface WebRestrictions { |
+ // Get the cached result, if any, of requesting access to a URL; including key/value pairs for |
+ // custom error ints and strings. |
+ GetResult(string url) => (ClientResult? reply); |
+ RequestPermission(string url) => (bool result); |
+}; |