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