Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: third_party/libjingle_xmpp/xmpp/prexmppauth.h

Issue 2738973004: Replace rtc::CryptString with std::string (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_LIBJINGLE_XMPP_PREXMPPAUTH_H_ 11 #ifndef WEBRTC_LIBJINGLE_XMPP_PREXMPPAUTH_H_
12 #define WEBRTC_LIBJINGLE_XMPP_PREXMPPAUTH_H_ 12 #define WEBRTC_LIBJINGLE_XMPP_PREXMPPAUTH_H_
13 13
14 #include "third_party/libjingle_xmpp/xmpp/saslhandler.h" 14 #include "third_party/libjingle_xmpp/xmpp/saslhandler.h"
15 #include "third_party/webrtc/base/cryptstring.h"
16 #include "third_party/webrtc/base/sigslot.h" 15 #include "third_party/webrtc/base/sigslot.h"
17 16
18 namespace rtc { 17 namespace rtc {
19 class SocketAddress; 18 class SocketAddress;
20 } 19 }
21 20
22 namespace buzz { 21 namespace buzz {
23 22
24 class Jid; 23 class Jid;
25 class SaslMechanism; 24 class SaslMechanism;
(...skipping 18 matching lines...) Expand all
44 std::string captcha_image_url_; 43 std::string captcha_image_url_;
45 }; 44 };
46 45
47 class PreXmppAuth : public SaslHandler { 46 class PreXmppAuth : public SaslHandler {
48 public: 47 public:
49 virtual ~PreXmppAuth() {} 48 virtual ~PreXmppAuth() {}
50 49
51 virtual void StartPreXmppAuth( 50 virtual void StartPreXmppAuth(
52 const Jid& jid, 51 const Jid& jid,
53 const rtc::SocketAddress& server, 52 const rtc::SocketAddress& server,
54 const rtc::CryptString& pass, 53 const std::string& pass,
55 const std::string& auth_mechanism, 54 const std::string& auth_mechanism,
56 const std::string& auth_token) = 0; 55 const std::string& auth_token) = 0;
57 56
58 sigslot::signal0<> SignalAuthDone; 57 sigslot::signal0<> SignalAuthDone;
59 58
60 virtual bool IsAuthDone() const = 0; 59 virtual bool IsAuthDone() const = 0;
61 virtual bool IsAuthorized() const = 0; 60 virtual bool IsAuthorized() const = 0;
62 virtual bool HadError() const = 0; 61 virtual bool HadError() const = 0;
63 virtual int GetError() const = 0; 62 virtual int GetError() const = 0;
64 virtual CaptchaChallenge GetCaptchaChallenge() const = 0; 63 virtual CaptchaChallenge GetCaptchaChallenge() const = 0;
65 virtual std::string GetAuthMechanism() const = 0; 64 virtual std::string GetAuthMechanism() const = 0;
66 virtual std::string GetAuthToken() const = 0; 65 virtual std::string GetAuthToken() const = 0;
67 }; 66 };
68 67
69 } 68 }
70 69
71 #endif // WEBRTC_LIBJINGLE_XMPP_PREXMPPAUTH_H_ 70 #endif // WEBRTC_LIBJINGLE_XMPP_PREXMPPAUTH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698