[ { "interfaces": [ { "base": "nsICancelable", "callable": false, "consts": [ { "name": "PERSIST_FLAGS_NONE", "value": 0 }, { "name": "PERSIST_FLAGS_FROM_CACHE", "value": 1 }, { "name": "PERSIST_FLAGS_BYPASS_CACHE", "value": 2 }, { "name": "PERSIST_FLAGS_IGNORE_REDIRECTED_DATA", "value": 4 }, { "name": "PERSIST_FLAGS_IGNORE_IFRAMES", "value": 8 }, { "name": "PERSIST_FLAGS_NO_CONVERSION", "value": 16 }, { "name": "PERSIST_FLAGS_REPLACE_EXISTING_FILES", "value": 32 }, { "name": "PERSIST_FLAGS_NO_BASE_TAG_MODIFICATIONS", "value": 64 }, { "name": "PERSIST_FLAGS_FIXUP_ORIGINAL_DOM", "value": 128 }, { "name": "PERSIST_FLAGS_FIXUP_LINKS_TO_DESTINATION", "value": 256 }, { "name": "PERSIST_FLAGS_DONT_FIXUP_LINKS", "value": 512 }, { "name": "PERSIST_FLAGS_SERIALIZE_OUTPUT", "value": 1024 }, { "name": "PERSIST_FLAGS_DONT_CHANGE_FILENAMES", "value": 2048 }, { "name": "PERSIST_FLAGS_FAIL_ON_BROKEN_LINKS", "value": 4096 }, { "name": "PERSIST_FLAGS_CLEANUP_ON_FAILURE", "value": 8192 }, { "name": "PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION", "value": 16384 }, { "name": "PERSIST_FLAGS_APPEND_TO_FILE", "value": 32768 }, { "name": "PERSIST_FLAGS_DISABLE_HTTPS_ONLY", "value": 65536 }, { "name": "PERSIST_STATE_READY", "value": 1 }, { "name": "PERSIST_STATE_SAVING", "value": 2 }, { "name": "PERSIST_STATE_FINISHED", "value": 3 }, { "name": "ENCODE_FLAGS_SELECTION_ONLY", "value": 1 }, { "name": "ENCODE_FLAGS_FORMATTED", "value": 2 }, { "name": "ENCODE_FLAGS_RAW", "value": 4 }, { "name": "ENCODE_FLAGS_BODY_ONLY", "value": 8 }, { "name": "ENCODE_FLAGS_PREFORMATTED", "value": 16 }, { "name": "ENCODE_FLAGS_WRAP", "value": 32 }, { "name": "ENCODE_FLAGS_FORMAT_FLOWED", "value": 64 }, { "name": "ENCODE_FLAGS_ABSOLUTE_LINKS", "value": 128 }, { "name": "ENCODE_FLAGS_CR_LINEBREAKS", "value": 512 }, { "name": "ENCODE_FLAGS_LF_LINEBREAKS", "value": 1024 }, { "name": "ENCODE_FLAGS_NOSCRIPT_CONTENT", "value": 2048 }, { "name": "ENCODE_FLAGS_NOFRAMES_CONTENT", "value": 4096 }, { "name": "ENCODE_FLAGS_ENCODE_BASIC_ENTITIES", "value": 8192 }, { "name": "ENCODE_FLAGS_DISALLOW_LINE_BREAKING", "value": 16384 } ], "enums": [], "id": "nsIWebBrowserPersist", "members": [ { "name": "persistFlags", "readonly": false, "type": "u32" }, { "name": "currentState", "readonly": true, "type": "u32" }, { "name": "result", "readonly": true, "type": "nsresult" }, { "name": "progressListener", "readonly": false, "type": "nsIWebProgressListener" }, { "args": [ { "name": "aURI", "optional": false, "type": "nsIURI" }, { "name": "aTriggeringPrincipal", "optional": false, "type": "nsIPrincipal" }, { "name": "aCacheKey", "optional": false, "type": "u32" }, { "name": "aReferrerInfo", "optional": false, "type": "nsIReferrerInfo" }, { "name": "aCookieJarSettings", "optional": false, "type": "nsICookieJarSettings" }, { "name": "aPostData", "optional": false, "type": "nsIInputStream" }, { "name": "aExtraHeaders", "optional": false, "type": "string" }, { "name": "aFile", "optional": false, "type": "nsISupports" }, { "name": "aContentPolicyType", "optional": false, "type": "nsContentPolicyType" }, { "name": "aIsPrivate", "optional": false, "type": "boolean" } ], "iid_is": null, "name": "saveURI", "type": "void" }, { "args": [ { "name": "aChannel", "optional": false, "type": "nsIChannel" }, { "name": "aFile", "optional": false, "type": "nsISupports" } ], "iid_is": null, "name": "saveChannel", "type": "void" }, { "args": [ { "name": "aDocument", "optional": false, "type": "nsISupports" }, { "name": "aFile", "optional": false, "type": "nsISupports" }, { "name": "aDataPath", "optional": false, "type": "nsISupports" }, { "name": "aOutputContentType", "optional": false, "type": "string" }, { "name": "aEncodingFlags", "optional": false, "type": "u32" }, { "name": "aWrapColumn", "optional": false, "type": "u32" } ], "iid_is": null, "name": "saveDocument", "type": "void" }, { "args": [], "iid_is": null, "name": "cancelSave", "type": "void" } ] } ], "path": "dom/webbrowserpersist/nsIWebBrowserPersist.idl", "typedefs": [ [ "PRTime", "i64" ], [ "nsContentPolicyType", "nsIContentPolicy.nsContentPolicyType" ] ] }, { "interfaces": [ { "base": "nsISupports", "callable": false, "consts": [], "enums": [], "id": "nsIWebBrowserPersistURIMap", "members": [ { "name": "numMappedURIs", "readonly": true, "type": "u32" }, { "args": [ { "name": "aIndex", "optional": false, "type": "u32" }, { "name": "aMapFrom", "optional": false, "type": "OutParam" }, { "name": "aMapTo", "optional": false, "type": "OutParam" } ], "iid_is": null, "name": "getURIMapping", "type": "void" }, { "name": "targetBaseURI", "readonly": true, "type": "string" } ] }, { "base": "nsISupports", "callable": false, "consts": [], "enums": [], "id": "nsIWebBrowserPersistDocument", "members": [ { "name": "isClosed", "readonly": true, "type": "boolean" }, { "args": [], "iid_is": null, "name": "close", "type": "void" }, { "name": "isPrivate", "readonly": true, "type": "boolean" }, { "name": "documentURI", "readonly": true, "type": "string" }, { "name": "baseURI", "readonly": true, "type": "string" }, { "name": "contentType", "readonly": true, "type": "string" }, { "name": "characterSet", "readonly": true, "type": "string" }, { "name": "title", "readonly": true, "type": "string" }, { "name": "referrerInfo", "readonly": true, "type": "nsIReferrerInfo" }, { "name": "cookieJarSettings", "readonly": true, "type": "nsICookieJarSettings" }, { "name": "contentDisposition", "readonly": true, "type": "string" }, { "name": "postData", "readonly": true, "type": "nsIInputStream" }, { "name": "principal", "readonly": true, "type": "nsIPrincipal" }, { "name": "cacheKey", "readonly": true, "type": "u32" }, { "name": "persistFlags", "readonly": false, "type": "u32" }, { "args": [ { "name": "aVisitor", "optional": false, "type": "nsIWebBrowserPersistResourceVisitor" } ], "iid_is": null, "name": "readResources", "type": "void" }, { "args": [ { "name": "aStream", "optional": false, "type": "nsIOutputStream" }, { "name": "aURIMap", "optional": false, "type": "nsIWebBrowserPersistURIMap" }, { "name": "aRequestedContentType", "optional": false, "type": "string" }, { "name": "aEncoderFlags", "optional": false, "type": "u32" }, { "name": "aWrapColumn", "optional": false, "type": "u32" }, { "name": "aCompletion", "optional": false, "type": "nsIWebBrowserPersistWriteCompletion" } ], "iid_is": null, "name": "writeContent", "type": "void" } ] }, { "base": "nsISupports", "callable": false, "consts": [], "enums": [], "id": "nsIWebBrowserPersistResourceVisitor", "members": [ { "args": [ { "name": "aDocument", "optional": false, "type": "nsIWebBrowserPersistDocument" }, { "name": "aURI", "optional": false, "type": "string" }, { "name": "aContentPolicyType", "optional": false, "type": "nsContentPolicyType" } ], "iid_is": null, "name": "visitResource", "type": "void" }, { "args": [ { "name": "aDocument", "optional": false, "type": "nsIWebBrowserPersistDocument" }, { "name": "aSubDocument", "optional": false, "type": "nsIWebBrowserPersistDocument" } ], "iid_is": null, "name": "visitDocument", "type": "void" }, { "args": [ { "name": "aDocument", "optional": false, "type": "nsIWebBrowserPersistDocument" }, { "name": "aContext", "optional": false, "type": "BrowsingContext" } ], "iid_is": null, "name": "visitBrowsingContext", "type": "void" }, { "args": [ { "name": "aDocument", "optional": false, "type": "nsIWebBrowserPersistDocument" }, { "name": "aStatus", "optional": false, "type": "nsresult" } ], "iid_is": null, "name": "endVisit", "type": "void" } ] }, { "base": "nsISupports", "callable": true, "consts": [], "enums": [], "id": "nsIWebBrowserPersistWriteCompletion", "members": [ { "args": [ { "name": "aDocument", "optional": false, "type": "nsIWebBrowserPersistDocument" }, { "name": "aStream", "optional": false, "type": "nsIOutputStream" }, { "name": "aContentType", "optional": false, "type": "string" }, { "name": "aStatus", "optional": false, "type": "nsresult" } ], "iid_is": null, "name": "onFinish", "type": "void" } ] }, { "base": "nsISupports", "callable": false, "consts": [], "enums": [], "id": "nsIWebBrowserPersistDocumentReceiver", "members": [ { "args": [ { "name": "aDocument", "optional": false, "type": "nsIWebBrowserPersistDocument" } ], "iid_is": null, "name": "onDocumentReady", "type": "void" }, { "args": [ { "name": "aFailure", "optional": false, "type": "nsresult" } ], "iid_is": null, "name": "onError", "type": "void" } ] } ], "path": "dom/webbrowserpersist/nsIWebBrowserPersistDocument.idl", "typedefs": [ [ "PRTime", "i64" ], [ "nsContentPolicyType", "nsIContentPolicy.nsContentPolicyType" ] ] } ]