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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/plugins/plugins.mojom
diff --git a/chrome/browser/ui/webui/plugins/plugins.mojom b/chrome/browser/ui/webui/plugins/plugins.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..b42f3f45c95155244b7a9d1ea101d1ee2c460ca9
--- /dev/null
+++ b/chrome/browser/ui/webui/plugins/plugins.mojom
@@ -0,0 +1,45 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+struct MimeType {
+ string description;
+ array<string> file_extensions;
+ string mime_type;
+};
+
+struct PluginFile {
+ string description;
+ string enabled_mode;
+ array<MimeType> mime_types;
+ string name;
+ string path;
+ string type;
+ string version;
+};
+
+struct PluginData {
+ bool always_allowed;
+ string description;
+ bool critical;
+ string enabled_mode;
+ string id;
+ string name;
+ string update_url;
+ string version;
+ array<PluginFile> plugin_files;
+};
+
+interface PluginsHandlerMojo {
+ GetPluginsData() => (array<PluginData> plugins);
+ GetShowDetails() => (bool show_details);
+ SaveShowDetailsToPrefs(bool details_mode);
+ SetPluginAlwaysAllowed(string plugin, bool allowed);
+ SetPluginEnabled(string plugin_path, bool enable);
+ SetPluginGroupEnabled(string group_name, bool enable);
+ SetClientPage(PluginsPageMojo page);
+};
+
+interface PluginsPageMojo {
+ OnPluginsUpdated(array<PluginData> plugins);
+};
« 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