OLD | NEW |
---|---|
(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 }; | |
OLD | NEW |