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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module web_restrictions.mojom;
6
7 struct ClientResult {
8 map<string, int32> intParams;
9 map<string, string> stringParams;
10 };
11
12 interface WebRestrictions {
13 // Get the cached result, if any, of requesting access to a URL; including
14 // key/value pairs for custom error ints and strings. This has to be
15 // synchronous since it is needed to show the error page, and delaying the
16 // error page can result in a race with the Webview API.
17 [Sync]
18 GetResult(string url) => (ClientResult reply);
19
20 // Request
21 RequestPermission(string url) => (bool result);
22 };
OLDNEW
« 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