image/ScriptedNotificationObserver.h
author Ciure Andrei <aciure@mozilla.com>
Sat, 10 Mar 2018 02:31:43 +0200
changeset 407428 12afe6be329fe78619bbc35772da7b7ce1ada2b5
parent 244258 7701abd924856d65acbf9927629cf27dd2335ec1
child 448947 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Backed out 2 changesets (bug 1439026) for webreftest css/CSS2/borders/border-top-width-080.xht failures a=backout on a CLOSED TREE Backed out changeset 7e197166f04e (bug 1439026) Backed out changeset 39d03fed10fb (bug 1439026)

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