image/ScriptedNotificationObserver.h
author Carsten "Tomcat" Book <cbook@mozilla.com>
Wed, 14 Oct 2015 13:34:37 +0200
changeset 607004 96042c38d46ccb874bd2227bd5d1638c3c0f448b
parent 466122 7701abd924856d65acbf9927629cf27dd2335ec1
child 857505 b12656f61c3d499606e3a12eecd238135c4ee5ff
child 1049334 cbb8fdf1daf98a15f7d57f6b08d273bdf96aa1a0
child 1336492 46ef8bf6c68664b27953e4680747da7a985c30b2
child 1398386 80ed235cff6a319ed3171c949f352a5d6e41726e
permissions -rw-r--r--
Backed out changeset a59aa67a7ba6 (bug 1194049)

/* -*- 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/. */

#ifndef mozilla_image_ScriptedNotificationObserver_h
#define mozilla_image_ScriptedNotificationObserver_h

#include "imgINotificationObserver.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"

class imgIScriptedNotificationObserver;

namespace mozilla {
namespace image {

class ScriptedNotificationObserver : public imgINotificationObserver
{
public:
  explicit
    ScriptedNotificationObserver(imgIScriptedNotificationObserver* aInner);

  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
  NS_DECL_IMGINOTIFICATIONOBSERVER
  NS_DECL_CYCLE_COLLECTION_CLASS(ScriptedNotificationObserver)

private:
  virtual ~ScriptedNotificationObserver() { }
  nsCOMPtr<imgIScriptedNotificationObserver> mInner;
};

} // namespace image
} // namespace mozilla

#endif // mozilla_image_ScriptedNotificationObserver_h