modules/libjar/nsIJARURI.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     2  *
     3  * This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #include "nsIURL.idl"
     9 /**
    10  * JAR URLs have the following syntax
    11  *
    12  * jar:<jar-file-uri>!/<jar-entry>
    13  *
    14  * EXAMPLE: jar:http://www.big.com/blue.jar!/ocean.html
    15  *
    16  * The nsIURL methods operate on the <jar-entry> part of the spec.
    17  */
    18 [scriptable, uuid(1ee60719-c056-43b3-8f54-6a6e7ba0ca6c)]
    19 interface nsIJARURI : nsIURL {
    21     /**
    22      * Returns the root URI (the one for the actual JAR file) for this JAR
    23      * (e.g., http://www.big.com/blue.jar).
    24      */
    25     readonly attribute nsIURI JARFile;
    27     /**
    28      * Returns the entry specified for this JAR URI (e.g., "ocean.html").  This
    29      * value may contain %-escaped byte sequences.
    30      */
    31     attribute AUTF8String JAREntry;
    33     /**
    34      * Create a clone of the JAR URI with a new root URI (the URI for the
    35      * actual JAR file).
    36      */
    37     nsIJARURI cloneWithJARFile(in nsIURI jarFile);
    38 };

mercurial