Bug 1928997: Update tabs icon in Unified Search popup r=desktop-theme-reviewers,daleh...
[gecko.git] / security / manager / ssl / NSSErrorsService.h
bloba19bea9e5f0cd243fc4c054cf419493d1a24a78f
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"
9 #include "nsCOMPtr.h"
10 #include "nsILineInputStream.h"
11 #include "nsINSSErrorsService.h"
12 #include "nsISafeOutputStream.h"
13 #include "nsIStringBundle.h"
14 #include "prerror.h"
16 class nsIStringBundle;
18 namespace mozilla {
19 namespace psm {
21 class NSSErrorsService final : public nsINSSErrorsService {
22 NS_DECL_ISUPPORTS
23 NS_DECL_NSINSSERRORSSERVICE
25 public:
26 nsresult Init();
28 private:
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.
32 #ifdef _MSC_VER
33 // C4265: Class has virtual members but destructor is not virtual
34 __pragma(warning(disable : 4265))
35 #endif
36 ~NSSErrorsService();
38 nsCOMPtr<nsIStringBundle> mPIPNSSBundle;
39 nsCOMPtr<nsIStringBundle> mNSSErrorsBundle;
42 bool IsNSSErrorCode(PRErrorCode code);
43 nsresult GetXPCOMFromNSSError(PRErrorCode code);
44 bool ErrorIsOverridable(PRErrorCode code);
46 } // namespace psm
47 } // namespace mozilla
49 #define NS_NSSERRORSSERVICE_CID \
50 { \
51 0x9ef18451, 0xa157, 0x4d17, { \
52 0x81, 0x32, 0x47, 0xaf, 0xef, 0x21, 0x36, 0x89 \
53 } \
56 #endif // NSSErrorsService_h