| 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 bool trusted; |
| 26 bool policy_click_to_play; |
| 26 string description; | 27 string description; |
| 27 bool critical; | 28 bool critical; |
| 28 string enabled_mode; | 29 string enabled_mode; |
| 29 string id; | 30 string id; |
| 30 string name; | 31 string name; |
| 31 string update_url; | 32 string update_url; |
| 32 string version; | 33 string version; |
| 33 array<PluginFile> plugin_files; | 34 array<PluginFile> plugin_files; |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 interface PluginsPageHandler { | 37 interface PluginsPageHandler { |
| 37 GetPluginsData() => (array<PluginData> plugins); | 38 GetPluginsData() => (array<PluginData> plugins); |
| 38 GetShowDetails() => (bool show_details); | 39 GetShowDetails() => (bool show_details); |
| 39 SaveShowDetailsToPrefs(bool details_mode); | 40 SaveShowDetailsToPrefs(bool details_mode); |
| 40 SetPluginAlwaysAllowed(string plugin, bool allowed); | 41 SetPluginAlwaysAllowed(string plugin, bool allowed); |
| 41 SetPluginEnabled(string plugin_path, bool enable); | 42 SetPluginEnabled(string plugin_path, bool enable); |
| 42 SetPluginGroupEnabled(string group_name, bool enable); | 43 SetPluginGroupEnabled(string group_name, bool enable); |
| 43 SetClientPage(PluginsPage page); | 44 SetClientPage(PluginsPage page); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 interface PluginsPage { | 47 interface PluginsPage { |
| 47 OnPluginsUpdated(array<PluginData> plugins); | 48 OnPluginsUpdated(array<PluginData> plugins); |
| 48 }; | 49 }; |
| OLD | NEW |