ScriptedNotificationObserver.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #ifndef mozilla_image_ScriptedNotificationObserver_h
  7. #define mozilla_image_ScriptedNotificationObserver_h
  8. #include "imgINotificationObserver.h"
  9. #include "nsCOMPtr.h"
  10. #include "nsCycleCollectionParticipant.h"
  11. class imgIScriptedNotificationObserver;
  12. namespace mozilla {
  13. namespace image {
  14. class ScriptedNotificationObserver : public imgINotificationObserver
  15. {
  16. public:
  17. explicit
  18. ScriptedNotificationObserver(imgIScriptedNotificationObserver* aInner);
  19. NS_DECL_CYCLE_COLLECTING_ISUPPORTS
  20. NS_DECL_IMGINOTIFICATIONOBSERVER
  21. NS_DECL_CYCLE_COLLECTION_CLASS(ScriptedNotificationObserver)
  22. private:
  23. virtual ~ScriptedNotificationObserver() { }
  24. nsCOMPtr<imgIScriptedNotificationObserver> mInner;
  25. };
  26. } // namespace image
  27. } // namespace mozilla
  28. #endif // mozilla_image_ScriptedNotificationObserver_h