image/src/ScriptedNotificationObserver.h
author Glenn Randers-Pehrson <glennrp+bmo@gmail.com>
Tue, 31 Mar 2015 10:50:00 -0700
changeset 269409 237289a9969624dc6b6f7744c85ce8d622f13501
parent 227629 2c760e1690b51802dca2c574fd304653d35f4007
child 276182 2ef80cf97822b7b4e475da1536b282971029c97a
permissions -rw-r--r--
Bug 1102048 (Part 14, NotificationObserver) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth

/* -*- 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_src_ScriptedNotificationObserver_h
#define mozilla_image_src_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_src_ScriptedNotificationObserver_h