зеркало из https://github.com/mozilla/gecko-dev.git
40 строки
1.2 KiB
Plaintext
40 строки
1.2 KiB
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsISupports.idl"
|
|
#include "nsISerializable.idl"
|
|
|
|
interface nsIURI;
|
|
|
|
[scriptable, builtinclass, uuid(081cdc36-f2e2-4f94-87bf-78578f06f1eb)]
|
|
interface nsIReferrerInfo : nsISerializable
|
|
{
|
|
/**
|
|
* The original referrer URI which indicates the full referrer before applying
|
|
* referrer policy
|
|
*/
|
|
[infallible] readonly attribute nsIURI originalReferrer;
|
|
|
|
/**
|
|
* Referrer policy which is applied to the referrer
|
|
*/
|
|
[infallible] attribute unsigned long referrerPolicy;
|
|
|
|
/**
|
|
* Indicates if the referrer should not be sent or not even when it's available.
|
|
*/
|
|
[infallible] attribute boolean sendReferrer;
|
|
|
|
/**
|
|
* Initialize method.
|
|
* @param aReferrerPolicy referrer policy of the created object
|
|
* @param aSendReferrer sendReferrer of the created object, defaults to false
|
|
* @param aOriginalReferrer the original referrer, defaults to null.
|
|
*/
|
|
|
|
void init(in uint32_t aReferrerPolicy,
|
|
[optional] in boolean aSendReferrer,
|
|
[optional] in nsIURI aOriginalReferrer);
|
|
};
|