1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef NSSErrorsService_h
6 #define NSSErrorsService_h
8 #include "mozilla/Attributes.h"
10 #include "nsILineInputStream.h"
11 #include "nsINSSErrorsService.h"
12 #include "nsISafeOutputStream.h"
13 #include "nsIStringBundle.h"
16 class nsIStringBundle
;
21 class NSSErrorsService final
: public nsINSSErrorsService
{
23 NS_DECL_NSINSSERRORSSERVICE
29 // For XPCOM implementations that are not a base class for some other
30 // class, it is good practice to make the destructor non-virtual and
31 // private. Then the only way to delete the object is via Release.
33 // C4265: Class has virtual members but destructor is not virtual
34 __pragma(warning(disable
: 4265))
38 nsCOMPtr
<nsIStringBundle
> mPIPNSSBundle
;
39 nsCOMPtr
<nsIStringBundle
> mNSSErrorsBundle
;
42 bool IsNSSErrorCode(PRErrorCode code
);
43 nsresult
GetXPCOMFromNSSError(PRErrorCode code
);
44 bool ErrorIsOverridable(PRErrorCode code
);
47 } // namespace mozilla
49 #define NS_NSSERRORSSERVICE_CID \
51 0x9ef18451, 0xa157, 0x4d17, { \
52 0x81, 0x32, 0x47, 0xaf, 0xef, 0x21, 0x36, 0x89 \
56 #endif // NSSErrorsService_h