nsErrorService.h 829 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsErrorService_h__
  6. #define nsErrorService_h__
  7. #include "mozilla/Attributes.h"
  8. #include "nsIErrorService.h"
  9. #include "nsClassHashtable.h"
  10. #include "nsHashKeys.h"
  11. class nsErrorService final : public nsIErrorService
  12. {
  13. public:
  14. NS_DECL_ISUPPORTS
  15. NS_DECL_NSIERRORSERVICE
  16. nsErrorService()
  17. {
  18. }
  19. static nsresult
  20. Create(nsISupports* aOuter, const nsIID& aIID, void** aInstancePtr);
  21. private:
  22. ~nsErrorService()
  23. {
  24. }
  25. nsClassHashtable<nsUint32HashKey, nsCString> mErrorStringBundleURLMap;
  26. };
  27. #endif // nsErrorService_h__