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

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 test for changes to handling of no content provider 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 key /value pairs for
Tom Sepez 2016/08/03 20:55:41 nit: 80 cols.
aberent 2016/08/16 16:55:45 Done.
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);
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.
18
19 // Request
20 RequestPermission(string url) => (bool result);
21 };
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