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..8cfbf3ea382a872bd63fe27857e178bfc0c2b4c5 |
--- /dev/null |
+++ b/components/web_restrictions/interfaces/web_restrictions.mojom |
@@ -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. |
+ |
+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 |
Tom Sepez
2016/08/03 20:55:41
nit: 80 cols.
aberent
2016/08/16 16:55:45
Done.
|
+ // custom error ints and strings. This has to be synchronous since it is needed to show the error |
+ // page, and delaying the error page can result in a race with the Webview API. |
+ [Sync] |
+ GetResult(string url) => (ClientResult? reply); |
Tom Sepez
2016/08/03 20:55:41
nit: does optional buy anything here vs. a result
aberent
2016/08/16 16:55:45
Done.
|
+ |
+ // Request |
+ RequestPermission(string url) => (bool result); |
+}; |