michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsDocElementCreatedNotificationRunner_h michael@0: #define nsDocElementCreatedNotificationRunner_h michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsThreadUtils.h" /* nsRunnable */ michael@0: michael@0: #include "nsContentSink.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsIDocument.h" michael@0: michael@0: class nsDocElementCreatedNotificationRunner : public nsRunnable michael@0: { michael@0: public: michael@0: nsDocElementCreatedNotificationRunner(nsIDocument* aDoc) michael@0: : mDoc(aDoc) michael@0: { michael@0: } michael@0: michael@0: NS_IMETHOD Run() MOZ_OVERRIDE michael@0: { michael@0: nsContentSink::NotifyDocElementCreated(mDoc); michael@0: return NS_OK; michael@0: } michael@0: michael@0: nsCOMPtr mDoc; michael@0: }; michael@0: michael@0: #endif /* nsDocElementCreatedNotificationRunner_h */