/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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 nsIEventTarget; class nsIPrincipal; class nsPIDOMWindowInner;
namespace mozilla::dom {
class StorageEvent;
/** * Enables the StorageNotifierService to check whether an observer is interested * in receiving events for the given principal before calling the method, an * optimization refactoring. * * Expected to only be implemented by nsGlobalWindowObserver or its succesor.
*/ class StorageNotificationObserver { public:
NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING
/** * A specialized version of the observer service that uses the custom * StorageNotificationObserver so that principal checks can happen in this class * rather than in the nsIObserver::observe method where they used to happen. * * The only expected consumers are nsGlobalWindowInner instances via their * nsGlobalWindowObserver helper that avoids being able to use the window as an * nsIObserver.
*/ class StorageNotifierService final { public:
NS_INLINE_DECL_REFCOUNTING(StorageNotifierService)
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.