Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef nsTransactionList_h__ |
michael@0 | 7 | #define nsTransactionList_h__ |
michael@0 | 8 | |
michael@0 | 9 | #include "nsAutoPtr.h" |
michael@0 | 10 | #include "nsISupportsImpl.h" |
michael@0 | 11 | #include "nsITransactionList.h" |
michael@0 | 12 | #include "nsIWeakReferenceUtils.h" |
michael@0 | 13 | |
michael@0 | 14 | class nsITransaction; |
michael@0 | 15 | class nsITransactionManager; |
michael@0 | 16 | class nsTransactionItem; |
michael@0 | 17 | class nsTransactionStack; |
michael@0 | 18 | |
michael@0 | 19 | /** implementation of a transaction list object. |
michael@0 | 20 | * |
michael@0 | 21 | */ |
michael@0 | 22 | class nsTransactionList : public nsITransactionList |
michael@0 | 23 | { |
michael@0 | 24 | private: |
michael@0 | 25 | |
michael@0 | 26 | nsWeakPtr mTxnMgr; |
michael@0 | 27 | nsTransactionStack *mTxnStack; |
michael@0 | 28 | nsRefPtr<nsTransactionItem> mTxnItem; |
michael@0 | 29 | |
michael@0 | 30 | public: |
michael@0 | 31 | |
michael@0 | 32 | nsTransactionList(nsITransactionManager *aTxnMgr, nsTransactionStack *aTxnStack); |
michael@0 | 33 | nsTransactionList(nsITransactionManager *aTxnMgr, nsTransactionItem *aTxnItem); |
michael@0 | 34 | |
michael@0 | 35 | virtual ~nsTransactionList(); |
michael@0 | 36 | |
michael@0 | 37 | /* Macro for AddRef(), Release(), and QueryInterface() */ |
michael@0 | 38 | NS_DECL_ISUPPORTS |
michael@0 | 39 | |
michael@0 | 40 | /* nsITransactionManager method implementations. */ |
michael@0 | 41 | NS_DECL_NSITRANSACTIONLIST |
michael@0 | 42 | |
michael@0 | 43 | /* nsTransactionList specific methods. */ |
michael@0 | 44 | }; |
michael@0 | 45 | |
michael@0 | 46 | #endif // nsTransactionList_h__ |