Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: chrome/browser/ui/webui/plugins/plugins.mojom

Issue 1857263004: Always trust internal PDF viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 struct MimeType { 5 struct MimeType {
6 string description; 6 string description;
7 array<string> file_extensions; 7 array<string> file_extensions;
8 string mime_type; 8 string mime_type;
9 }; 9 };
10 10
11 struct PluginFile { 11 struct PluginFile {
12 string description; 12 string description;
13 string enabled_mode; 13 string enabled_mode;
14 array<MimeType> mime_types; 14 array<MimeType> mime_types;
15 string name; 15 string name;
16 string path; 16 string path;
17 string type; 17 string type;
18 string version; 18 string version;
19 }; 19 };
20 20
21 struct PluginData { 21 struct PluginData {
22 bool always_allowed; 22 bool always_allowed;
23 bool trusted;
23 string description; 24 string description;
24 bool critical; 25 bool critical;
25 string enabled_mode; 26 string enabled_mode;
26 string id; 27 string id;
27 string name; 28 string name;
28 string update_url; 29 string update_url;
29 string version; 30 string version;
30 array<PluginFile> plugin_files; 31 array<PluginFile> plugin_files;
31 }; 32 };
32 33
33 interface PluginsHandlerMojo { 34 interface PluginsHandlerMojo {
34 GetPluginsData() => (array<PluginData> plugins); 35 GetPluginsData() => (array<PluginData> plugins);
35 GetShowDetails() => (bool show_details); 36 GetShowDetails() => (bool show_details);
36 SaveShowDetailsToPrefs(bool details_mode); 37 SaveShowDetailsToPrefs(bool details_mode);
37 SetPluginAlwaysAllowed(string plugin, bool allowed); 38 SetPluginAlwaysAllowed(string plugin, bool allowed);
38 SetPluginEnabled(string plugin_path, bool enable); 39 SetPluginEnabled(string plugin_path, bool enable);
39 SetPluginGroupEnabled(string group_name, bool enable); 40 SetPluginGroupEnabled(string group_name, bool enable);
40 SetClientPage(PluginsPageMojo page); 41 SetClientPage(PluginsPageMojo page);
41 }; 42 };
42 43
43 interface PluginsPageMojo { 44 interface PluginsPageMojo {
44 OnPluginsUpdated(array<PluginData> plugins); 45 OnPluginsUpdated(array<PluginData> plugins);
45 }; 46 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698