Bug 845676 - Remove most of the assertion annotations in the content/media mochitests...
[gecko.git] / modules / libjar / nsIJARURI.idl
blob1bab2018ee494d22154bd7a167c7377e4b55b6a8
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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
12 * jar:<jar-file-uri>!/<jar-entry>
14 * EXAMPLE: jar:http://www.big.com/blue.jar!/ocean.html
16 * The nsIURL methods operate on the <jar-entry> part of the spec.
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).
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.
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).
37 nsIJARURI cloneWithJARFile(in nsIURI jarFile);