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

Side by Side Diff: jingle/notifier/base/gaia_token_pre_xmpp_auth.h

Issue 653203005: Roll WebRTC 7546:7549. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decreased the number of gyp changes in this patch since thats the only major change (the reset is j… Created 6 years, 1 month 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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef JINGLE_NOTIFIER_BASE_GAIA_TOKEN_PRE_XMPP_AUTH_H_ 5 #ifndef JINGLE_NOTIFIER_BASE_GAIA_TOKEN_PRE_XMPP_AUTH_H_
6 #define JINGLE_NOTIFIER_BASE_GAIA_TOKEN_PRE_XMPP_AUTH_H_ 6 #define JINGLE_NOTIFIER_BASE_GAIA_TOKEN_PRE_XMPP_AUTH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "talk/xmpp/prexmppauth.h" 12 #include "webrtc/libjingle/xmpp/prexmppauth.h"
13 13
14 namespace notifier { 14 namespace notifier {
15 15
16 // This class implements buzz::PreXmppAuth interface for token-based 16 // This class implements buzz::PreXmppAuth interface for token-based
17 // authentication in GTalk. It looks for the X-GOOGLE-TOKEN auth mechanism 17 // authentication in GTalk. It looks for the X-GOOGLE-TOKEN auth mechanism
18 // and uses that instead of the default auth mechanism (PLAIN). 18 // and uses that instead of the default auth mechanism (PLAIN).
19 class GaiaTokenPreXmppAuth : public buzz::PreXmppAuth { 19 class GaiaTokenPreXmppAuth : public buzz::PreXmppAuth {
20 public: 20 public:
21 GaiaTokenPreXmppAuth(const std::string& username, const std::string& token, 21 GaiaTokenPreXmppAuth(const std::string& username, const std::string& token,
22 const std::string& token_service, 22 const std::string& token_service,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 private: 59 private:
60 std::string username_; 60 std::string username_;
61 std::string token_; 61 std::string token_;
62 std::string token_service_; 62 std::string token_service_;
63 std::string auth_mechanism_; 63 std::string auth_mechanism_;
64 }; 64 };
65 65
66 } // namespace notifier 66 } // namespace notifier
67 67
68 #endif // JINGLE_NOTIFIER_BASE_GAIA_TOKEN_PRE_XMPP_AUTH_H_ 68 #endif // JINGLE_NOTIFIER_BASE_GAIA_TOKEN_PRE_XMPP_AUTH_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/fake_base_task.cc ('k') | jingle/notifier/base/gaia_token_pre_xmpp_auth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698