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

Side by Side Diff: remoting/jingle_glue/jingle_client.cc

Issue 6649006: Added support for other authentication mechanisms in jingle. This will allow ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Lint error fixed Created 9 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 | Annotate | Revision Log
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 "remoting/jingle_glue/jingle_client.h" 5 #include "remoting/jingle_glue/jingle_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "jingle/notifier/communicator/gaia_token_pre_xmpp_auth.h" 10 #include "jingle/notifier/communicator/gaia_token_pre_xmpp_auth.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 default: 108 default:
109 NOTREACHED(); 109 NOTREACHED();
110 break; 110 break;
111 } 111 }
112 } 112 }
113 113
114 buzz::PreXmppAuth* XmppSignalStrategy::CreatePreXmppAuth( 114 buzz::PreXmppAuth* XmppSignalStrategy::CreatePreXmppAuth(
115 const buzz::XmppClientSettings& settings) { 115 const buzz::XmppClientSettings& settings) {
116 buzz::Jid jid(settings.user(), settings.host(), buzz::STR_EMPTY); 116 buzz::Jid jid(settings.user(), settings.host(), buzz::STR_EMPTY);
117 return new notifier::GaiaTokenPreXmppAuth(jid.Str(), settings.auth_cookie(), 117 return new notifier::GaiaTokenPreXmppAuth(jid.Str(), settings.auth_cookie(),
118 settings.token_service()); 118 settings.token_service(),
119 std::string());
119 } 120 }
120 121
121 122
122 JavascriptSignalStrategy::JavascriptSignalStrategy(const std::string& your_jid) 123 JavascriptSignalStrategy::JavascriptSignalStrategy(const std::string& your_jid)
123 : your_jid_(your_jid) { 124 : your_jid_(your_jid) {
124 } 125 }
125 126
126 JavascriptSignalStrategy::~JavascriptSignalStrategy() { 127 JavascriptSignalStrategy::~JavascriptSignalStrategy() {
127 } 128 }
128 129
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 << ", stun: " << stun_servers; 347 << ", stun: " << stun_servers;
347 port_allocator_->SetRelayToken(token); 348 port_allocator_->SetRelayToken(token);
348 port_allocator_->SetStunHosts(stun_hosts); 349 port_allocator_->SetStunHosts(stun_hosts);
349 port_allocator_->SetRelayHosts(relay_hosts); 350 port_allocator_->SetRelayHosts(relay_hosts);
350 } else { 351 } else {
351 LOG(INFO) << "Jingle info found but no port allocator."; 352 LOG(INFO) << "Jingle info found but no port allocator.";
352 } 353 }
353 } 354 }
354 355
355 } // namespace remoting 356 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698