Bug 1858509 add thread-safety annotations around MediaSourceDemuxer::mMonitor r=alwu
[gecko.git] / extensions / auth / nsAuthSASL.h
blobf829fd0d1729b2cccb4ba65ee9c72e3a985ec55f
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"
13 /* This class is implemented using the nsAuthGSSAPI class, and the same
14 * thread safety constraints which are documented in nsAuthGSSAPI.h
15 * apply to this class
18 class nsAuthSASL final : public nsIAuthModule {
19 public:
20 NS_DECL_THREADSAFE_ISUPPORTS
21 NS_DECL_NSIAUTHMODULE
23 nsAuthSASL();
25 private:
26 ~nsAuthSASL() { Reset(); }
28 void Reset();
30 nsCOMPtr<nsIAuthModule> mInnerModule;
31 nsString mUsername;
32 bool mSASLReady;
35 #endif /* nsAuthSASL_h__ */