Bug 1746074 [wpt PR 32068] - Create property tree nodes for will-change only when...
[gecko.git] / extensions / auth / nsAuthSASL.h
blob1769961a35de2af53dbe94fa61806fa4c4251193
1 /* vim:set ts=4 sw=2 et cindent: */
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/. */
6 #ifndef nsAuthSASL_h__
7 #define nsAuthSASL_h__
9 #include "nsIAuthModule.h"
10 #include "nsString.h"
11 #include "nsCOMPtr.h"
12 #include "mozilla/Attributes.h"
14 /* This class is implemented using the nsAuthGSSAPI class, and the same
15 * thread safety constraints which are documented in nsAuthGSSAPI.h
16 * apply to this class
19 class nsAuthSASL final : public nsIAuthModule {
20 public:
21 NS_DECL_THREADSAFE_ISUPPORTS
22 NS_DECL_NSIAUTHMODULE
24 nsAuthSASL();
26 private:
27 ~nsAuthSASL() { Reset(); }
29 void Reset();
31 nsCOMPtr<nsIAuthModule> mInnerModule;
32 nsString mUsername;
33 bool mSASLReady;
36 #endif /* nsAuthSASL_h__ */