Struct xpcom::interfaces::mozIGeckoMediaPluginChromeService
[−]
[src]
#[repr(C)]pub struct mozIGeckoMediaPluginChromeService { /* fields omitted */ }
interface mozIGeckoMediaPluginChromeService : nsISupports
Methods
impl mozIGeckoMediaPluginChromeService
[src]
pub fn coerce<T: mozIGeckoMediaPluginChromeServiceCoerce>(&self) -> &T
[src]
Cast this mozIGeckoMediaPluginChromeService
to one of its base interfaces.
impl mozIGeckoMediaPluginChromeService
[src]
pub unsafe fn AddPluginDirectory(&self, directory: &nsAString) -> nsresult
[src]
/**
* Add a directory to scan for gecko media plugins.
* @note Main-thread API.
*/
void addPluginDirectory (in AString directory);
pub unsafe fn RemovePluginDirectory(&self, directory: &nsAString) -> nsresult
[src]
/**
* Remove a directory for gecko media plugins.
* @note Main-thread API.
*/
void removePluginDirectory (in AString directory);
pub unsafe fn RemoveAndDeletePluginDirectory(
&self,
directory: &nsAString,
defer: bool
) -> nsresult
[src]
&self,
directory: &nsAString,
defer: bool
) -> nsresult
/**
* Remove a directory for gecko media plugins and delete it from disk.
* If |defer| is true, wait until the plugin is unused before removing.
* @note Main-thread API.
*/
void removeAndDeletePluginDirectory (in AString directory, [optional] in bool defer);
pub unsafe fn ForgetThisSite(
&self,
site: &nsAString,
aPattern: &nsAString
) -> nsresult
[src]
&self,
site: &nsAString,
aPattern: &nsAString
) -> nsresult
/**
* Clears storage data associated with the site and the originAttributes
* pattern in JSON format.
*/
void forgetThisSite (in AString site, in DOMString aPattern);
pub unsafe fn IsPersistentStorageAllowed(
&self,
nodeId: &nsACString,
_retval: *mut bool
) -> nsresult
[src]
&self,
nodeId: &nsACString,
_retval: *mut bool
) -> nsresult
/**
* Returns true if the given node id is allowed to store things
* persistently on disk. Private Browsing and local content are not
* allowed to store persistent data.
*/
bool isPersistentStorageAllowed (in ACString nodeId);
pub unsafe fn GetStorageDir(&self, _retval: *mut *const nsIFile) -> nsresult
[src]
/**
* Returns the directory to use as the base for storing data about GMPs.
*/
nsIFile getStorageDir ();
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 mozIGeckoMediaPluginChromeService
[src]
const IID: nsIID
IID: nsIID = nsID(852712737, 6175, 17968, [140, 170, 164, 49, 226, 235, 173, 114])
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 mozIGeckoMediaPluginChromeService
[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 mozIGeckoMediaPluginChromeService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.