2012-10-12 16:11:22 +00:00
|
|
|
/* -*- 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/. */
|
|
|
|
|
2015-05-15 03:52:05 +00:00
|
|
|
#ifndef mozilla_image_ScriptedNotificationObserver_h
|
|
|
|
#define mozilla_image_ScriptedNotificationObserver_h
|
2013-12-03 13:20:53 +00:00
|
|
|
|
2012-10-12 16:11:22 +00:00
|
|
|
#include "imgINotificationObserver.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsCycleCollectionParticipant.h"
|
|
|
|
|
|
|
|
class imgIScriptedNotificationObserver;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace image {
|
|
|
|
|
|
|
|
class ScriptedNotificationObserver : public imgINotificationObserver {
|
|
|
|
public:
|
2015-03-31 17:50:00 +00:00
|
|
|
explicit ScriptedNotificationObserver(
|
|
|
|
imgIScriptedNotificationObserver* aInner);
|
2012-10-12 16:11:22 +00:00
|
|
|
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
NS_DECL_IMGINOTIFICATIONOBSERVER
|
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS(ScriptedNotificationObserver)
|
|
|
|
|
|
|
|
private:
|
2015-03-31 17:50:00 +00:00
|
|
|
virtual ~ScriptedNotificationObserver() {}
|
2012-10-12 16:11:22 +00:00
|
|
|
nsCOMPtr<imgIScriptedNotificationObserver> mInner;
|
|
|
|
};
|
|
|
|
|
2015-03-31 17:50:00 +00:00
|
|
|
} // namespace image
|
|
|
|
} // namespace mozilla
|
2013-12-03 13:20:53 +00:00
|
|
|
|
2015-05-15 03:52:05 +00:00
|
|
|
#endif // mozilla_image_ScriptedNotificationObserver_h
|