Bumping manifests a=b2g-bump
[gecko.git] / extensions / auth / nsAuthSASL.h
blob5dd578e6b6976d806cd590b87c29df18345e80c0
1 /* vim:set ts=4 sw=4 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 MOZ_FINAL : public nsIAuthModule
21 public:
22 NS_DECL_THREADSAFE_ISUPPORTS
23 NS_DECL_NSIAUTHMODULE
25 nsAuthSASL();
27 private:
28 ~nsAuthSASL() { Reset(); }
30 void Reset();
32 nsCOMPtr<nsIAuthModule> mInnerModule;
33 nsString mUsername;
34 bool mSASLReady;
37 #endif /* nsAuthSASL_h__ */