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

Unified Diff: components/web_restrictions/interfaces/web_restrictions.mojom

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits 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
« no previous file with comments | « components/web_restrictions/interfaces/OWNERS ('k') | components/web_restrictions/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b47e5b914722fd0ae3b548917b3f8f79e8ee4c99
--- /dev/null
+++ b/components/web_restrictions/interfaces/web_restrictions.mojom
@@ -0,0 +1,22 @@
+// 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. 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);
+
+ // Request
+ RequestPermission(string url) => (bool result);
+};
« no previous file with comments | « components/web_restrictions/interfaces/OWNERS ('k') | components/web_restrictions/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698