/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */
// Create and setup the channel with necessary security properties and // the nsISupportsPriority value. This is overridable by // subclasses to allow different initial conditions. // // @param aSupportsPriorityValue see <nsISupportsPriority.idl>. virtual nsresult CreateChannel(
nsIChannel** aChannel, nsIURI* aURI, const CORSMode aCORSMode, const dom::ReferrerPolicy& aReferrerPolicy, dom::Document* aDocument,
nsILoadGroup* aLoadGroup, nsIInterfaceRequestor* aCallbacks,
uint64_t aEarlyHintPreloaderId, int32_t aSupportsPriorityValue);
// The listener passed to AsyncConsume in case we haven't started getting the // data from the channel yet.
nsCOMPtr<nsIStreamListener> mConsumeListener;
// Returned by AsyncConsume when a failure. This remembers the result of // opening the channel and prevents duplicate consumation.
nsresult mAsyncConsumeResult = NS_ERROR_NOT_AVAILABLE;
// The CP type to check against. Derived classes have to override call to CSP // constructor of this class.
nsContentPolicyType mContentPolicyType;
};
} // namespace mozilla
#endif
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet)
¤
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.