Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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
17 */
19 class nsAuthSASL MOZ_FINAL : public nsIAuthModule
20 {
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;
35 };
37 #endif /* nsAuthSASL_h__ */