Struct xpcom::interfaces::nsIWebBrowserPersistDocument [] [src]

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

interface nsIWebBrowserPersistDocument : nsISupports

/**
 * Interface representing a document that can be serialized with
 * nsIWebBrowserPersist; it may or may not be in this process.  Some
 * information is exposed as attributes, which may or may not reflect
 * changes made to the underlying document; most of these are
 * self-explanatory from their names and types.
 */

Methods

impl nsIWebBrowserPersistDocument
[src]

[src]

Cast this nsIWebBrowserPersistDocument to one of its base interfaces.

impl nsIWebBrowserPersistDocument
[src]

[src]

readonly attribute boolean isPrivate;

[src]

readonly attribute AUTF8String documentURI;

[src]

readonly attribute AUTF8String baseURI;

[src]

readonly attribute ACString contentType;

[src]

readonly attribute ACString characterSet;

[src]

readonly attribute AString title;

[src]

readonly attribute AString referrer;

[src]

readonly attribute AString contentDisposition;

[src]

readonly attribute nsIInputStream postData;

[src]

/**
   * The cache key.  Unlike in nsISHEntry, where it's wrapped in an
   * nsISupportsPRUint32, this is just the integer.
   */

readonly attribute unsigned long cacheKey;

[src]

/**
   * This attribute is set by nsIWebBrowserPersist implementations to
   * propagate persist flags that apply to the DOM traversal and
   * serialization (rather than to managing file I/O).
   */

attribute unsigned long persistFlags;

[src]

/**
   * This attribute is set by nsIWebBrowserPersist implementations to
   * propagate persist flags that apply to the DOM traversal and
   * serialization (rather than to managing file I/O).
   */

attribute unsigned long persistFlags;

[src]

/**
   * Walk the DOM searching for external resources needed to render it.
   * The visitor callbacks may be called either before or after
   * readResources returns.
   *
   * @see nsIWebBrowserPersistResourceVisitor
   */

void readResources (in nsIWebBrowserPersistResourceVisitor aVisitor);

[src]

/**
   * Serialize the document's DOM.
   *
   * @param aStream       The output stream to write the document to.
   *
   * @param aURIMap       Optional; specifies URI rewriting to perform on
   *                      external references (as read by readResources).
   *                      If given, also causes relative hyperlinks to be
   *                      converted to absolute in the written text.
   *
   * @param aRequestedContentType
   *                      The desired MIME type to save the document as;
   *                      optional and defaults to the document's type.
   *                      (If no encoder exists for that type, "text/html"
   *                      is used instead.)
   *
   * @param aEncoderFlags Flags to pass to the encoder.
   *
   * @param aWrapColumn   Desired text width, ignored if wrapping is not
   *                      specified by the encoding flags, or if 0.
   *
   * @param aCompletion   Callback invoked when writing is complete.
   *                      It may be called either before or after writeContent
   *                      returns.
   *
   * @see nsIDocumentEncoder
   */

void writeContent (in nsIOutputStream aStream, in nsIWebBrowserPersistURIMap aURIMap, in ACString aRequestedContentType, in unsigned long aEncoderFlags, in unsigned long aWrapColumn, in nsIWebBrowserPersistWriteCompletion aCompletion);

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

IID: nsIID = nsID(1957316888, 23829, 18102, [156, 207, 116, 249, 105, 109, 114, 29])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWebBrowserPersistDocument
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.