1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/base/nsMacUtilsImpl.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsMacUtilsImpl_h___ 1.10 +#define nsMacUtilsImpl_h___ 1.11 + 1.12 +#include "nsIMacUtils.h" 1.13 +#include "nsString.h" 1.14 +#include "mozilla/Attributes.h" 1.15 + 1.16 +class nsMacUtilsImpl MOZ_FINAL : public nsIMacUtils 1.17 +{ 1.18 +public: 1.19 + NS_DECL_ISUPPORTS 1.20 + NS_DECL_NSIMACUTILS 1.21 + 1.22 + nsMacUtilsImpl() {} 1.23 + 1.24 +private: 1.25 + ~nsMacUtilsImpl() {} 1.26 + 1.27 + nsresult GetArchString(nsAString& archString); 1.28 + 1.29 + // A string containing a "-" delimited list of architectures 1.30 + // in our binary. 1.31 + nsString mBinaryArchs; 1.32 +}; 1.33 + 1.34 +// Global singleton service 1.35 +// 697BD3FD-43E5-41CE-AD5E-C339175C0818 1.36 +#define NS_MACUTILSIMPL_CID \ 1.37 + {0x697BD3FD, 0x43E5, 0x41CE, {0xAD, 0x5E, 0xC3, 0x39, 0x17, 0x5C, 0x08, 0x18}} 1.38 +#define NS_MACUTILSIMPL_CONTRACTID "@mozilla.org/xpcom/mac-utils;1" 1.39 + 1.40 +#endif /* nsMacUtilsImpl_h___ */