2014-07-10 18:13:00 +04:00
|
|
|
/* 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"
|
|
|
|
|
|
|
|
/**
|
2019-05-23 01:37:14 +03:00
|
|
|
* nsIForcePending interface exposes a function that enables overwriting of the normal
|
2014-07-10 18:13:00 +04:00
|
|
|
* behavior for the channel's IsPending(), forcing 'true' to be returned.
|
|
|
|
*/
|
|
|
|
|
2015-10-16 07:07:00 +03:00
|
|
|
[noscript, uuid(2ac3e1ca-049f-44c3-a519-f0681f51e9b1)]
|
2014-07-10 18:13:00 +04:00
|
|
|
interface nsIForcePendingChannel : nsISupports
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
2019-05-23 01:37:14 +03:00
|
|
|
* forcePending(true) overrides the normal behavior for the
|
2014-07-10 18:13:00 +04:00
|
|
|
* channel's IsPending(), forcing 'true' to be returned. A call to
|
|
|
|
* forcePending(false) reverts IsPending() back to normal behavior.
|
|
|
|
*/
|
|
|
|
void forcePending(in boolean aForcePending);
|
|
|
|
};
|