/* 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/. */
class nsAsyncStreamCopier final : public nsIAsyncStreamCopier,
nsIAsyncStreamCopier2 { public:
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIREQUEST
NS_DECL_NSIASYNCSTREAMCOPIER
// nsIAsyncStreamCopier2 // We declare it by hand instead of NS_DECL_NSIASYNCSTREAMCOPIER2 // as nsIAsyncStreamCopier2 duplicates methods of nsIAsyncStreamCopier
NS_IMETHOD Init(nsIInputStream* aSource, nsIOutputStream* aSink,
nsIEventTarget* aTarget, uint32_t aChunkSize, bool aCloseSource, bool aCloseSink) override;
nsAsyncStreamCopier();
//------------------------------------------------------------------------- // these methods may be called on any thread
bool IsComplete(nsresult* status = nullptr); void Complete(nsresult status);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.