1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/glue/nsCycleCollectionNoteRootCallback.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef nsCycleCollectionNoteRootCallback_h__ 1.11 +#define nsCycleCollectionNoteRootCallback_h__ 1.12 + 1.13 +class nsCycleCollectionParticipant; 1.14 +class nsISupports; 1.15 + 1.16 +class nsCycleCollectionNoteRootCallback 1.17 +{ 1.18 +public: 1.19 + NS_IMETHOD_(void) NoteXPCOMRoot(nsISupports *root) = 0; 1.20 + NS_IMETHOD_(void) NoteJSRoot(void *root) = 0; 1.21 + NS_IMETHOD_(void) NoteNativeRoot(void *root, nsCycleCollectionParticipant *participant) = 0; 1.22 + 1.23 + NS_IMETHOD_(void) NoteWeakMapping(void *map, void *key, void *kdelegate, void *val) = 0; 1.24 + 1.25 + bool WantAllTraces() const { return mWantAllTraces; } 1.26 +protected: 1.27 + nsCycleCollectionNoteRootCallback() : mWantAllTraces(false) {} 1.28 + 1.29 + bool mWantAllTraces; 1.30 +}; 1.31 + 1.32 +#endif // nsCycleCollectionNoteRootCallback_h__