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