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