summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamas Zakor <ztamas@inf.u-szeged.hu>2020-02-24 14:32:38 +0100
committerTamas Zakor <ztamas@inf.u-szeged.hu>2020-02-27 13:46:48 +0000
commit1652589a31403f7c5954a29fd46a298285d79bf6 (patch)
tree7da8f9497c67cec72b20e33b26e1c7bc214c0c06
parentdf99096fc68c7b9915b0520fd926975bb139bea3 (diff)
downloadqtwebengine-chromium-1652589a31403f7c5954a29fd46a298285d79bf6.tar.gz
Enable plugin.mojom for plugin placeholder
Task-number: QTBUG-82012 Change-Id: I5461c8c31406cfc3a1bf54cad9b10af639e9c4d3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--chromium/qtwebengine/browser/BUILD.gn5
-rw-r--r--chromium/qtwebengine/browser/plugin.mojom42
2 files changed, 47 insertions, 0 deletions
diff --git a/chromium/qtwebengine/browser/BUILD.gn b/chromium/qtwebengine/browser/BUILD.gn
index 8e42126aae7..9674f0a954f 100644
--- a/chromium/qtwebengine/browser/BUILD.gn
+++ b/chromium/qtwebengine/browser/BUILD.gn
@@ -4,8 +4,13 @@ import ("//mojo/public/tools/bindings/mojom.gni")
mojom("interfaces") {
sources = [
+ "plugin.mojom",
"qtwebchannel.mojom",
]
+
+ deps = [
+ "//mojo/public/mojom/base",
+ ]
}
grit("qt_webengine_resources") {
diff --git a/chromium/qtwebengine/browser/plugin.mojom b/chromium/qtwebengine/browser/plugin.mojom
new file mode 100644
index 00000000000..bbbc284e1de
--- /dev/null
+++ b/chromium/qtwebengine/browser/plugin.mojom
@@ -0,0 +1,42 @@
+// Copyright 2017 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.
+
+// based on chrome/common/plugin.mojom
+module chrome.mojom;
+
+import "mojo/public/mojom/base/file_path.mojom";
+import "mojo/public/mojom/base/string16.mojom";
+
+// These are only used internally, so the order does not matter.
+enum PluginStatus {
+ kAllowed,
+ // Plugin is blocked, but still can be manually loaded via context menu.
+ kBlocked,
+ // Plugin is blocked by policy, so it cannot be manually loaded.
+ kBlockedByPolicy,
+ // Plugin is blocked, and cannot be manually loaded via context menu.
+ kBlockedNoLoading,
+ kComponentUpdateRequired,
+ kDisabled,
+ // Flash is blocked, but user can click on the placeholder to trigger the
+ // Flash permission prompt.
+ kFlashHiddenPreferHtml,
+ kNotFound,
+ kOutdatedBlocked,
+ kOutdatedDisallowed,
+ kPlayImportantContent,
+ kRestartRequired,
+ kUnauthorized,
+};
+
+[Native]
+struct WebPluginInfo;
+
+struct PluginInfo {
+ PluginStatus status;
+ WebPluginInfo plugin;
+ string actual_mime_type;
+ string group_identifier;
+ mojo_base.mojom.String16 group_name;
+};