Struct xpcom::interfaces::nsIXPCComponents_Utils [] [src]

#[repr(C)]
pub struct nsIXPCComponents_Utils { /* fields omitted */ }

interface nsIXPCComponents_Utils : nsISupports

/**
* interface of Components.utils
*/

Methods

impl nsIXPCComponents_Utils
[src]

[src]

Cast this nsIXPCComponents_Utils to one of its base interfaces.

impl nsIXPCComponents_Utils
[src]

[src]

readonly attribute nsIXPCComponents_utils_Sandbox Sandbox;

[src]

/**
     * Returns true if the js file located at 'registryLocation' location has
     * been loaded previously via the import method above. Returns false
     * otherwise.
     *
     * @param resourceURI A resource:// URI string representing the location of
     *        the js file to be checked if it is already loaded or not.
     * @returns boolean, true if the js file has been loaded via import. false
     *          otherwise
     */

boolean isModuleLoaded (in AUTF8String aResourceURI);

[src]

void unload (in AUTF8String registryLocation);

[src]

void forceGC ();

[src]

void forceCC ([optional] in nsICycleCollectorListener aListener);

[src]

void finishCC ();

[src]

void ccSlice (in long long budget);

[src]

long getMaxCCSliceTimeSinceClear ();

[src]

void clearMaxCCTime ();

[src]

void forceShrinkingGC ();

[src]

void schedulePreciseGC (in ScheduledGCCallback callback);

[src]

void schedulePreciseShrinkingGC (in ScheduledGCCallback callback);

[src]

void unlinkGhostWindows ();

[src]

readonly attribute boolean isInAutomation;

[src]

void crashIfNotInAutomation ();

[src]

/**
     * Get a DOM classinfo for the given classname.  Only some class
     * names are supported.
     */

nsIClassInfo getDOMClassInfo (in AString aClassName);

[src]

/**
      * Retrieve the last time, in microseconds since epoch, that a given
      * watchdog-related event occured.
      *
      * Valid categories:
      *   "ContextStateChange"      - Context switching between active and inactive states
      *   "WatchdogWakeup"          - Watchdog waking up from sleeping
      *   "WatchdogHibernateStart"  - Watchdog begins hibernating
      *   "WatchdogHibernateStop"   - Watchdog stops hibernating
      */

PRTime getWatchdogTimestamp (in AString aCategory);

[src]

nsIPrincipal getWebIDLCallerPrincipal ();

[src]

double now ();

[src]

AUTF8String readUTF8File (in nsIFile file);

[src]

AUTF8String readUTF8URI (in nsIURI url);

[src]

/**
     * If the main thread is using any kind of fancy cooperative
     * scheduling (e.g., Quantum DOM scheduling),
     * blockThreadedExecution disables it temporarily. The
     * aBlockedCallback is called when it has been completely disabled
     * and events are back to running sequentially on a single main
     * thread. Calling unblockThreadedExecution will re-enable thread
     * scheduling of the main thread. Multiple calls to
     * blockThreadedExecution will require the same number of calls to
     * unblockThreadedExecution in order to resume cooperative
     * scheduling.
     */

void blockThreadedExecution (in nsIBlockThreadedExecutionCallback aBlockedCallback);

[src]

void unblockThreadedExecution ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIXPCComponents_Utils
[src]

IID: nsIID = nsID(2248163299, 61082, 17952, [145, 220, 238, 248, 177, 229, 136, 21])

[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 nsIXPCComponents_Utils
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIXPCComponents_Utils
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.