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

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

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 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 // 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 #include "jingle/notifier/base/gaia_token_pre_xmpp_auth.h" 5 #include "jingle/notifier/base/gaia_token_pre_xmpp_auth.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "third_party/libjingle_xmpp/xmpp/constants.h"
12 #include "third_party/libjingle_xmpp/xmpp/saslcookiemechanism.h"
11 #include "webrtc/base/socketaddress.h" 13 #include "webrtc/base/socketaddress.h"
12 #include "webrtc/libjingle/xmpp/constants.h"
13 #include "webrtc/libjingle/xmpp/saslcookiemechanism.h"
14 14
15 namespace notifier { 15 namespace notifier {
16 16
17 namespace { 17 namespace {
18 18
19 class GaiaCookieMechanism : public buzz::SaslCookieMechanism { 19 class GaiaCookieMechanism : public buzz::SaslCookieMechanism {
20 public: 20 public:
21 GaiaCookieMechanism(const std::string & mechanism, 21 GaiaCookieMechanism(const std::string & mechanism,
22 const std::string & username, 22 const std::string & username,
23 const std::string & cookie, 23 const std::string & cookie,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 buzz::SaslMechanism* GaiaTokenPreXmppAuth::CreateSaslMechanism( 110 buzz::SaslMechanism* GaiaTokenPreXmppAuth::CreateSaslMechanism(
111 const std::string& mechanism) { 111 const std::string& mechanism) {
112 if (mechanism == auth_mechanism_) 112 if (mechanism == auth_mechanism_)
113 return new GaiaCookieMechanism( 113 return new GaiaCookieMechanism(
114 mechanism, username_, token_, token_service_); 114 mechanism, username_, token_, token_service_);
115 return NULL; 115 return NULL;
116 } 116 }
117 117
118 } // namespace notifier 118 } // namespace notifier
OLDNEW
« no previous file with comments | « jingle/notifier/base/gaia_token_pre_xmpp_auth.h ('k') | jingle/notifier/base/notifier_options_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698