mirror of
https://github.com/mozilla-firefox/firefox
synced 2026-08-12 12:35:33 +00:00
- use = default when relevant - use = delete on public method instead of unimplemented private This matches the clang-tidy rules: - https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html - https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-delete.html That we already use on source files Differential Revision: https://phabricator.services.mozilla.com/D296626
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
/*
|
|
* 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() = default;
|
|
nsCOMPtr<imgIScriptedNotificationObserver> mInner;
|
|
};
|
|
|
|
} // namespace image
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_image_ScriptedNotificationObserver_h
|