| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module mojom; | 5 module mojom; |
| 6 | 6 |
| 7 struct MimeType { | 7 struct MimeType { |
| 8 string description; | 8 string description; |
| 9 array<string> file_extensions; | 9 array<string> file_extensions; |
| 10 string mime_type; | 10 string mime_type; |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 struct PluginFile { | 13 struct PluginFile { |
| 14 string description; | 14 string description; |
| 15 string enabled_mode; | 15 string enabled_mode; |
| 16 array<MimeType> mime_types; | 16 array<MimeType> mime_types; |
| 17 string name; | 17 string name; |
| 18 string path; | 18 string path; |
| 19 string type; | 19 string type; |
| 20 string version; | 20 string version; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 struct PluginData { | 23 struct PluginData { |
| 24 bool always_allowed; | 24 bool always_allowed; |
| 25 bool trusted; |
| 25 string description; | 26 string description; |
| 26 bool critical; | 27 bool critical; |
| 27 string enabled_mode; | 28 string enabled_mode; |
| 28 string id; | 29 string id; |
| 29 string name; | 30 string name; |
| 30 string update_url; | 31 string update_url; |
| 31 string version; | 32 string version; |
| 32 array<PluginFile> plugin_files; | 33 array<PluginFile> plugin_files; |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 interface PluginsHandlerMojo { | 36 interface PluginsHandlerMojo { |
| 36 GetPluginsData() => (array<PluginData> plugins); | 37 GetPluginsData() => (array<PluginData> plugins); |
| 37 GetShowDetails() => (bool show_details); | 38 GetShowDetails() => (bool show_details); |
| 38 SaveShowDetailsToPrefs(bool details_mode); | 39 SaveShowDetailsToPrefs(bool details_mode); |
| 39 SetPluginAlwaysAllowed(string plugin, bool allowed); | 40 SetPluginAlwaysAllowed(string plugin, bool allowed); |
| 40 SetPluginEnabled(string plugin_path, bool enable); | 41 SetPluginEnabled(string plugin_path, bool enable); |
| 41 SetPluginGroupEnabled(string group_name, bool enable); | 42 SetPluginGroupEnabled(string group_name, bool enable); |
| 42 SetClientPage(PluginsPageMojo page); | 43 SetClientPage(PluginsPageMojo page); |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 interface PluginsPageMojo { | 46 interface PluginsPageMojo { |
| 46 OnPluginsUpdated(array<PluginData> plugins); | 47 OnPluginsUpdated(array<PluginData> plugins); |
| 47 }; | 48 }; |
| OLD | NEW |