2014-05-27 07:15:35 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2004-01-23 10:23:12 +00:00
|
|
|
|
|
|
|
#ifndef nsEnvironment_h__
|
|
|
|
#define nsEnvironment_h__
|
|
|
|
|
2012-06-05 23:51:58 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-04-01 04:29:02 +00:00
|
|
|
#include "mozilla/Mutex.h"
|
2004-01-23 10:23:12 +00:00
|
|
|
#include "nsIEnvironment.h"
|
|
|
|
|
|
|
|
#define NS_ENVIRONMENT_CID \
|
|
|
|
{ 0X3D68F92UL, 0X9513, 0X4E25, \
|
|
|
|
{ 0X9B, 0XE9, 0X7C, 0XB2, 0X39, 0X87, 0X41, 0X72 } }
|
|
|
|
#define NS_ENVIRONMENT_CONTRACTID "@mozilla.org/process/environment;1"
|
|
|
|
|
2012-06-05 23:51:58 +00:00
|
|
|
class nsEnvironment MOZ_FINAL : public nsIEnvironment
|
2004-01-23 10:23:12 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-05-27 07:15:35 +00:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
|
|
|
NS_DECL_NSIENVIRONMENT
|
2004-01-23 10:23:12 +00:00
|
|
|
|
2014-05-27 07:15:35 +00:00
|
|
|
static nsresult Create(nsISupports* aOuter, REFNSIID aIID, void** aResult);
|
2004-01-23 10:23:12 +00:00
|
|
|
|
|
|
|
private:
|
2014-05-27 07:15:35 +00:00
|
|
|
nsEnvironment() : mLock("nsEnvironment.mLock")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
~nsEnvironment();
|
2004-01-23 10:23:12 +00:00
|
|
|
|
2014-05-27 07:15:35 +00:00
|
|
|
mozilla::Mutex mLock;
|
2004-01-23 10:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* !nsEnvironment_h__ */
|