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

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: Respond to comments, and fix a possible race in displaying error page Created 4 years, 7 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 key /value pairs for
14 // custom error ints and strings. This has to be synchronous since it is neede d to show the error
15 // page, and delaying the error page can result in a race with the Webview API .
16 [Sync]
17 GetResult(string url) => (ClientResult? reply);
18
19 // Request
20 RequestPermission(string url) => (bool result);
21 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698