michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 nsEnvironment_h__ michael@0: #define nsEnvironment_h__ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/Mutex.h" michael@0: #include "nsIEnvironment.h" michael@0: michael@0: #define NS_ENVIRONMENT_CID \ michael@0: { 0X3D68F92UL, 0X9513, 0X4E25, \ michael@0: { 0X9B, 0XE9, 0X7C, 0XB2, 0X39, 0X87, 0X41, 0X72 } } michael@0: #define NS_ENVIRONMENT_CONTRACTID "@mozilla.org/process/environment;1" michael@0: michael@0: class nsEnvironment MOZ_FINAL : public nsIEnvironment michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIENVIRONMENT michael@0: michael@0: static nsresult Create(nsISupports *aOuter, REFNSIID aIID, michael@0: void **aResult); michael@0: michael@0: private: michael@0: nsEnvironment() : mLock("nsEnvironment.mLock") { } michael@0: ~nsEnvironment(); michael@0: michael@0: mozilla::Mutex mLock; michael@0: }; michael@0: michael@0: #endif /* !nsEnvironment_h__ */