forked from chromiumembedded/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCefWebPluginManager.java
More file actions
60 lines (51 loc) · 2.06 KB
/
CefWebPluginManager.java
File metadata and controls
60 lines (51 loc) · 2.06 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.network;
import org.cef.callback.CefWebPluginInfoVisitor;
import org.cef.callback.CefWebPluginUnstableCallback;
/**
* Class used to manage web plugins.
*/
public abstract class CefWebPluginManager {
// This CTOR can't be called directly. Call method getGlobalManager() instead.
CefWebPluginManager() {}
/**
* Returns the global plugin manager.
*/
public static final CefWebPluginManager getGlobalManager() {
return CefWebPluginManager_N.getInstance();
}
/**
* Visit web plugin information. Can be called on any thread in the browser process.
*
* @param visitor Called with plugin information when available.
*/
public abstract void visitPlugins(CefWebPluginInfoVisitor visitor);
/**
* Cause the plugin list to refresh the next time it is accessed regardless of whether it has
* already been loaded. Can be called on any thread in the browser process.
*/
public abstract void refreshPlugins();
/**
* Unregister an internal plugin. This may be undone the next time refreshPlugins() is called.
* Can be called on any thread in the browser process.
*
* @param path Plugin file path (DLL/bundle/library).
*/
public abstract void unregisterInternalPlugin(String path);
/**
* Register a plugin crash. Can be called on any thread in the browser process but will be
* executed on the IO thread.
*
* @param path Plugin file path (DLL/bundle/library).
*/
public abstract void registerPluginCrash(String path);
/**
* Query if a plugin is unstable. Can be called on any thread in the browser process.
*
* @param path Plugin file path (DLL/bundle/library).
* @param callback Called when plugin information is available.
*/
public abstract void isWebPluginUnstable(String path, CefWebPluginUnstableCallback callback);
}