Backed out 3 changesets (bug 1854934) for causing build bustages on widget/windows...
[gecko.git] / xpcom / threads / nsEnvironment.h
blobd371050ec5fd85f7ed4c59f75db22f9967583cf3
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsEnvironment_h__
8 #define nsEnvironment_h__
10 #include "mozilla/Attributes.h"
11 #include "mozilla/Mutex.h"
12 #include "nsIEnvironment.h"
14 #define NS_ENVIRONMENT_CID \
15 { \
16 0X3D68F92UL, 0X9513, 0X4E25, { \
17 0X9B, 0XE9, 0X7C, 0XB2, 0X39, 0X87, 0X41, 0X72 \
18 } \
20 #define NS_ENVIRONMENT_CONTRACTID "@mozilla.org/process/environment;1"
22 class nsEnvironment final : public nsIEnvironment {
23 public:
24 NS_DECL_THREADSAFE_ISUPPORTS
25 NS_DECL_NSIENVIRONMENT
27 static nsresult Create(REFNSIID aIID, void** aResult);
29 private:
30 nsEnvironment() {}
31 ~nsEnvironment() = default;
34 #endif /* !nsEnvironment_h__ */