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

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

Issue 2885005: Move chrome/common/net/notifier to jingle/notifier so that it can be used by remoting/remoting.gyp. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: rebased Created 10 years, 5 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/common/net/notifier/communicator/gaia_token_pre_xmpp_auth.h" 5 #include "jingle/notifier/communicator/gaia_token_pre_xmpp_auth.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "talk/base/socketaddress.h" 9 #include "talk/base/socketaddress.h"
10 #include "talk/xmpp/constants.h" 10 #include "talk/xmpp/constants.h"
11 #include "talk/xmpp/saslcookiemechanism.h" 11 #include "talk/xmpp/saslcookiemechanism.h"
12 12
13 namespace notifier { 13 namespace notifier {
14 14
15 namespace { 15 namespace {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 buzz::SaslMechanism* GaiaTokenPreXmppAuth::CreateSaslMechanism( 68 buzz::SaslMechanism* GaiaTokenPreXmppAuth::CreateSaslMechanism(
69 const std::string& mechanism) { 69 const std::string& mechanism) {
70 if (mechanism != kGaiaAuthMechanism) 70 if (mechanism != kGaiaAuthMechanism)
71 return NULL; 71 return NULL;
72 return new buzz::SaslCookieMechanism( 72 return new buzz::SaslCookieMechanism(
73 kGaiaAuthMechanism, username_, token_, token_service_); 73 kGaiaAuthMechanism, username_, token_, token_service_);
74 } 74 }
75 75
76 } // namespace notifier 76 } // namespace notifier
OLDNEW
« no previous file with comments | « jingle/notifier/communicator/gaia_token_pre_xmpp_auth.h ('k') | jingle/notifier/communicator/login.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698