Struct xpcom::interfaces::nsIApplicationCacheService
[−]
[src]
#[repr(C)]pub struct nsIApplicationCacheService { /* fields omitted */ }
interface nsIApplicationCacheService : nsISupports
/**
* The application cache service manages the set of application cache
* groups.
*/
Methods
impl nsIApplicationCacheService
[src]
pub fn coerce<T: nsIApplicationCacheServiceCoerce>(&self) -> &T
[src]
Cast this nsIApplicationCacheService
to one of its base interfaces.
impl nsIApplicationCacheService
[src]
pub unsafe fn BuildGroupIDForInfo(
&self,
aManifestURL: *const nsIURI,
aLoadContextInfo: *const nsILoadContextInfo,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
aManifestURL: *const nsIURI,
aLoadContextInfo: *const nsILoadContextInfo,
_retval: &mut nsACString
) -> nsresult
/**
* Create group string identifying cache group according the manifest
* URL and the given principal.
*/
ACString buildGroupIDForInfo (in nsIURI aManifestURL, in nsILoadContextInfo aLoadContextInfo);
pub unsafe fn BuildGroupIDForSuffix(
&self,
aManifestURL: *const nsIURI,
aOriginSuffix: &nsACString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
aManifestURL: *const nsIURI,
aOriginSuffix: &nsACString,
_retval: &mut nsACString
) -> nsresult
ACString buildGroupIDForSuffix (in nsIURI aManifestURL, in ACString aOriginSuffix);
pub unsafe fn CreateApplicationCache(
&self,
group: &nsACString,
_retval: *mut *const nsIApplicationCache
) -> nsresult
[src]
&self,
group: &nsACString,
_retval: *mut *const nsIApplicationCache
) -> nsresult
/**
* Create a new, empty application cache for the given cache
* group.
*/
nsIApplicationCache createApplicationCache (in ACString group);
pub unsafe fn CreateCustomApplicationCache(
&self,
group: &nsACString,
profileDir: *const nsIFile,
quota: int32_t,
_retval: *mut *const nsIApplicationCache
) -> nsresult
[src]
&self,
group: &nsACString,
profileDir: *const nsIFile,
quota: int32_t,
_retval: *mut *const nsIApplicationCache
) -> nsresult
/**
* Create a new, empty application cache for the given cache
* group residing in a custom directory with a custom quota.
*
* @param group
* URL of the manifest
* @param directory
* Actually a reference to a profile directory where to
* create the OfflineCache sub-dir.
* @param quota
* Optional override of the default quota.
*/
nsIApplicationCache createCustomApplicationCache (in ACString group, in nsIFile profileDir, in int32_t quota);
pub unsafe fn GetApplicationCache(
&self,
clientID: &nsACString,
_retval: *mut *const nsIApplicationCache
) -> nsresult
[src]
&self,
clientID: &nsACString,
_retval: *mut *const nsIApplicationCache
) -> nsresult
/**
* Get an application cache object for the given client ID.
*/
nsIApplicationCache getApplicationCache (in ACString clientID);
pub unsafe fn GetActiveCache(
&self,
group: &nsACString,
_retval: *mut *const nsIApplicationCache
) -> nsresult
[src]
&self,
group: &nsACString,
_retval: *mut *const nsIApplicationCache
) -> nsresult
/**
* Get the currently active cache object for a cache group.
*/
nsIApplicationCache getActiveCache (in ACString group);
pub unsafe fn DeactivateGroup(&self, group: &nsACString) -> nsresult
[src]
/**
* Deactivate the currently-active cache object for a cache group.
*/
void deactivateGroup (in ACString group);
pub unsafe fn Evict(
&self,
aLoadContextInfo: *const nsILoadContextInfo
) -> nsresult
[src]
&self,
aLoadContextInfo: *const nsILoadContextInfo
) -> nsresult
/**
* Evict offline cache entries, either all of them or those belonging
* to the given origin.
*/
void evict (in nsILoadContextInfo aLoadContextInfo);
pub unsafe fn EvictMatchingOriginAttributes(
&self,
aPattern: &nsAString
) -> nsresult
[src]
&self,
aPattern: &nsAString
) -> nsresult
/**
* Delete caches whom origin attributes matches the given pattern.
*/
void evictMatchingOriginAttributes (in AString aPattern);
pub unsafe fn ChooseApplicationCache(
&self,
key: &nsACString,
aLoadContextInfo: *const nsILoadContextInfo,
_retval: *mut *const nsIApplicationCache
) -> nsresult
[src]
&self,
key: &nsACString,
aLoadContextInfo: *const nsILoadContextInfo,
_retval: *mut *const nsIApplicationCache
) -> nsresult
/**
* Try to find the best application cache to serve a resource.
*/
nsIApplicationCache chooseApplicationCache (in ACString key, [optional] in nsILoadContextInfo aLoadContextInfo);
pub unsafe fn CacheOpportunistically(
&self,
cache: *const nsIApplicationCache,
key: &nsACString
) -> nsresult
[src]
&self,
cache: *const nsIApplicationCache,
key: &nsACString
) -> nsresult
/**
* Flags the key as being opportunistically cached.
*
* This method should also propagate the entry to other
* application caches with the same opportunistic namespace, but
* this is not currently implemented.
*
* @param cache
* The cache in which the entry is cached now.
* @param key
* The cache entry key.
*/
void cacheOpportunistically (in nsIApplicationCache cache, in ACString key);
pub unsafe fn GetGroups(
&self,
count: *mut uint32_t,
groupIDs: *mut *mut *const c_char
) -> nsresult
[src]
&self,
count: *mut uint32_t,
groupIDs: *mut *mut *const c_char
) -> nsresult
/**
* Get the list of application cache groups.
*/
void getGroups ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs);
pub unsafe fn GetGroupsTimeOrdered(
&self,
count: *mut uint32_t,
groupIDs: *mut *mut *const c_char
) -> nsresult
[src]
&self,
count: *mut uint32_t,
groupIDs: *mut *mut *const c_char
) -> nsresult
/**
* Get the list of application cache groups in the order of
* activating time.
*/
void getGroupsTimeOrdered ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs);
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 nsIApplicationCacheService
[src]
const IID: nsIID
IID: nsIID = nsID(3098956908, 27884, 19418, [130, 223, 8, 224, 6, 169, 123, 86])
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 nsIApplicationCacheService
[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 nsIApplicationCacheService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.