1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;
};
|