michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 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 nsCycleCollectionNoteRootCallback_h__ michael@0: #define nsCycleCollectionNoteRootCallback_h__ michael@0: michael@0: class nsCycleCollectionParticipant; michael@0: class nsISupports; michael@0: michael@0: class nsCycleCollectionNoteRootCallback michael@0: { michael@0: public: michael@0: NS_IMETHOD_(void) NoteXPCOMRoot(nsISupports *root) = 0; michael@0: NS_IMETHOD_(void) NoteJSRoot(void *root) = 0; michael@0: NS_IMETHOD_(void) NoteNativeRoot(void *root, nsCycleCollectionParticipant *participant) = 0; michael@0: michael@0: NS_IMETHOD_(void) NoteWeakMapping(void *map, void *key, void *kdelegate, void *val) = 0; michael@0: michael@0: bool WantAllTraces() const { return mWantAllTraces; } michael@0: protected: michael@0: nsCycleCollectionNoteRootCallback() : mWantAllTraces(false) {} michael@0: michael@0: bool mWantAllTraces; michael@0: }; michael@0: michael@0: #endif // nsCycleCollectionNoteRootCallback_h__