nsIForcePendingChannel.idl 782 B

1234567891011121314151617181920212223
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #include "nsISupports.idl"
  5. /**
  6. * nsIForcePending interface exposes a function that enables overwriting of the normal
  7. * behavior for the channel's IsPending(), forcing 'true' to be returned.
  8. */
  9. [noscript, uuid(2ac3e1ca-049f-44c3-a519-f0681f51e9b1)]
  10. interface nsIForcePendingChannel : nsISupports
  11. {
  12. /**
  13. * forcePending(true) overrides the normal behavior for the
  14. * channel's IsPending(), forcing 'true' to be returned. A call to
  15. * forcePending(false) reverts IsPending() back to normal behavior.
  16. */
  17. void forcePending(in boolean aForcePending);
  18. };