Struct xpcom::interfaces::nsIBlocklistService
[−]
[src]
#[repr(C)]pub struct nsIBlocklistService { /* fields omitted */ }
interface nsIBlocklistService : nsISupports
Methods
impl nsIBlocklistService
[src]
pub fn coerce<T: nsIBlocklistServiceCoerce>(&self) -> &T
[src]
Cast this nsIBlocklistService
to one of its base interfaces.
impl nsIBlocklistService
[src]
pub const STATE_NOT_BLOCKED: i64
STATE_NOT_BLOCKED: i64 = 0
pub const STATE_SOFTBLOCKED: i64
STATE_SOFTBLOCKED: i64 = 1
pub const STATE_BLOCKED: i64
STATE_BLOCKED: i64 = 2
pub const STATE_OUTDATED: i64
STATE_OUTDATED: i64 = 3
pub const STATE_VULNERABLE_UPDATE_AVAILABLE: i64
STATE_VULNERABLE_UPDATE_AVAILABLE: i64 = 4
pub const STATE_VULNERABLE_NO_UPDATE: i64
STATE_VULNERABLE_NO_UPDATE: i64 = 5
pub unsafe fn GetPluginBlocklistState(
&self,
plugin: *const nsIPluginTag,
appVersion: &nsAString,
toolkitVersion: &nsAString,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
plugin: *const nsIPluginTag,
appVersion: &nsAString,
toolkitVersion: &nsAString,
_retval: *mut uint32_t
) -> nsresult
/**
* Determine the blocklist state of a plugin
* @param plugin
* The plugin to get the state for
* @param appVersion
* The version of the application we are checking in the blocklist.
* If this parameter is null, the version of the running application
* is used.
* @param toolkitVersion
* The version of the toolkit we are checking in the blocklist.
* If this parameter is null, the version of the running toolkit
* is used.
* @returns The STATE constant.
*/
unsigned long getPluginBlocklistState (in nsIPluginTag plugin, [optional] in AString appVersion, [optional] in AString toolkitVersion);
pub unsafe fn GetPluginBlocklistURL(
&self,
plugin: *const nsIPluginTag,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
plugin: *const nsIPluginTag,
_retval: &mut nsAString
) -> nsresult
/**
* Determine the blocklist web page of a plugin.
* @param plugin
* The blocked plugin that we are determining the web page for.
* @returns The URL of the description page.
*/
AString getPluginBlocklistURL (in nsIPluginTag plugin);
pub unsafe fn GetPluginInfoURL(
&self,
plugin: *const nsIPluginTag,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
plugin: *const nsIPluginTag,
_retval: &mut nsAString
) -> nsresult
/**
* Determine the blocklist infoURL of a plugin.
* @param plugin
* The blocked plugin that we are determining the infoURL for.
* @returns The preferred URL to present the user, or |null| if
* it is not available.
*/
AString getPluginInfoURL (in nsIPluginTag plugin);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIBlocklistService
[src]
const IID: nsIID
IID: nsIID = nsID(2799486830, 40802, 19649, [164, 112, 180, 131, 161, 166, 240, 150])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIBlocklistService
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIBlocklistService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.