Files
tubestation/netwerk/base/nsISuspendableChannelWrapper.idl
Mike Conley c4e6ff13ff Bug 1946569 - Part 1: Create nsISuspendableChannelWrapper and implementation. r=valentin,necko-reviewers
This implementation of nsIChannel wraps an inner nsIChannel, and allows suspend()
to be called immediately without waiting for asyncOpen to have been called.

Differential Revision: https://phabricator.services.mozilla.com/D237639
2025-03-06 14:55:26 +00:00

20 lines
793 B
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 "nsIChannel.idl"
/**
* An nsISuspendableChannelWrapper is an nsIChannel that will forward calls to
* an inner channel (passed in at initialization), but allows suspend() and
* resume() to be called before asyncOpen() is called. If the
* nsISuspendableChannelWrapper is fully resumed after asyncOpen() is called,
* the wrapped channel will have asyncOpen() called on it.
*
* An nsISuspendableChannelWrapper cannot be opened synchronously.
*/
[scriptable, builtinclass, uuid(317c1a44-2a66-4a30-9769-5e8489a64859)]
interface nsISuspendableChannelWrapper : nsIChannel
{
};