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 mojom; | |
6 | |
7 struct MimeType { | |
8 string description; | |
9 array<string> file_extensions; | |
10 string mime_type; | |
11 }; | |
12 | |
13 struct PluginFile { | |
14 string description; | |
15 string enabled_mode; | |
16 array<MimeType> mime_types; | |
17 string name; | |
18 string path; | |
19 string type; | |
20 string version; | |
21 }; | |
22 | |
23 struct PluginData { | |
24 bool always_allowed; | |
25 bool trusted; | |
26 bool policy_click_to_play; | |
27 string description; | |
28 bool critical; | |
29 string enabled_mode; | |
30 string id; | |
31 string name; | |
32 string update_url; | |
33 string version; | |
34 array<PluginFile> plugin_files; | |
35 }; | |
36 | |
37 interface PluginsPageHandler { | |
38 GetPluginsData() => (array<PluginData> plugins); | |
39 GetShowDetails() => (bool show_details); | |
40 SaveShowDetailsToPrefs(bool details_mode); | |
41 SetPluginAlwaysAllowed(string plugin, bool allowed); | |
42 SetClientPage(PluginsPage page); | |
43 }; | |
44 | |
45 interface PluginsPage { | |
46 OnPluginsUpdated(array<PluginData> plugins); | |
47 }; | |
OLD | NEW |