Bumping manifests a=b2g-bump
[gecko.git] / docshell / base / nsILoadInfo.idl
blob737f6c0d6113476778df27a542c36de7b20f412a
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: ft=cpp tw=78 sw=2 et ts=2 sts=2 cin
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 "nsISupports.idl"
9 interface nsIPrincipal;
10 /**
11 * An nsILoadOwner represents per-load information about who started the load.
13 [scriptable, builtinclass, uuid(046db047-a1c1-4519-8ec7-99f3054bc9ac)]
14 interface nsILoadInfo : nsISupports
16 /**
17 * loadingPrincipal is the principal that started the load. Will
18 * never be null.
20 readonly attribute nsIPrincipal loadingPrincipal;
22 /**
23 * A C++-friendly version of loadingPrincipal.
25 [noscript, notxpcom, nostdcall, binaryname(LoadingPrincipal)]
26 nsIPrincipal binaryLoadingPrincipal();
28 /**
29 * If forceInheritPrincipal is true, the data coming from the channel should
30 * use loadingPrincipal for its principal, even when the data is loaded over
31 * http:// or another protocol that would normally use a URI-based principal.
32 * This attribute will never be true when loadingSandboxed is true.
34 [infallible] readonly attribute boolean forceInheritPrincipal;
36 /**
37 * If loadingSandboxed is true, the data coming from the channel is
38 * being loaded sandboxed, so it should have a nonce origin and
39 * hence should use a NullPrincipal.
41 [infallible] readonly attribute boolean loadingSandboxed;