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 MacAutoreleasePool_h_ michael@0: #define MacAutoreleasePool_h_ michael@0: michael@0: // This needs to be #include-able from non-ObjC code in nsAppRunner.cpp michael@0: #ifdef __OBJC__ michael@0: @class NSAutoreleasePool; michael@0: #else michael@0: class NSAutoreleasePool; michael@0: #endif michael@0: michael@0: namespace mozilla { michael@0: michael@0: class MacAutoreleasePool { michael@0: public: michael@0: MacAutoreleasePool(); michael@0: ~MacAutoreleasePool(); michael@0: michael@0: private: michael@0: NSAutoreleasePool *mPool; michael@0: michael@0: MacAutoreleasePool(const MacAutoreleasePool&); michael@0: void operator=(const MacAutoreleasePool&); michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // MacAutoreleasePool_h_