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

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: Adding critical and update_url 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
sky 2016/01/22 00:58:34 2016
dpapad 2016/01/22 02:00:06 Done.
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);
sky 2016/01/22 00:58:34 Do you need both GetPluginsData() and OnPluginsUpd
dpapad 2016/01/22 02:00:06 The JS code is calling GetPluginsData() not only o
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

Powered by Google App Engine
This is Rietveld 408576698