/* 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 nsPrefetchService final : public nsIPrefetchService, public nsIWebProgressListener, public nsIObserver, public nsSupportsWeakReference { public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPREFETCHSERVICE
NS_DECL_NSIWEBPROGRESSLISTENER
NS_DECL_NSIOBSERVER
// In usual case prefetch does not start until all normal loads are done. // Aggressive mode ignores normal loads and just start prefetch ASAP. // It's mainly for testing purpose and discoraged for normal use; // see https://bugzilla.mozilla.org/show_bug.cgi?id=1281415 for details. bool mAggressive;
};
class nsPrefetchNode final : public nsIStreamListener, public nsIInterfaceRequestor, public nsIChannelEventSink, public nsIRedirectResultListener { public:
NS_DECL_ISUPPORTS
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSIINTERFACEREQUESTOR
NS_DECL_NSICHANNELEVENTSINK
NS_DECL_NSIREDIRECTRESULTLISTENER
// The policy type to be used for fetching the resource.
nsContentPolicyType mPolicyType; // nsPrefetchNode is used for prefetching and preloading resource. // mPreload is true if a resource is preloaded. Preloads and // prefetches are fetched in different phases (during load and // after a page load), therefore we need to distinguish them. bool mPreload;
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.