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

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

Issue 1524423002: chrome://plugins Mojo-ification part 1/2, adding interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing feedback Created 4 years, 11 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
« no previous file with comments | « chrome/browser/ui/webui/plugins/BUILD.gn ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/plugins/BUILD.gn ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698