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

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

Issue 10436013: [Sync] Make InvalidationNotifier use PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "jingle/notifier/communicator/single_login_attempt.h" 7 #include "jingle/notifier/communicator/single_login_attempt.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 23 matching lines...) Expand all
34 NOTREACHED(); 34 NOTREACHED();
35 return; 35 return;
36 } 36 }
37 TryConnect(*current_settings_); 37 TryConnect(*current_settings_);
38 } 38 }
39 39
40 SingleLoginAttempt::~SingleLoginAttempt() {} 40 SingleLoginAttempt::~SingleLoginAttempt() {}
41 41
42 void SingleLoginAttempt::OnConnect( 42 void SingleLoginAttempt::OnConnect(
43 base::WeakPtr<buzz::XmppTaskParentInterface> base_task) { 43 base::WeakPtr<buzz::XmppTaskParentInterface> base_task) {
44 DVLOG(1) << "Connected to " << current_settings_->ToString();
44 delegate_->OnConnect(base_task); 45 delegate_->OnConnect(base_task);
45 } 46 }
46 47
47 namespace { 48 namespace {
48 49
49 // This function is more permissive than 50 // This function is more permissive than
50 // net::HostPortPair::FromString(). If the port is missing or 51 // net::HostPortPair::FromString(). If the port is missing or
51 // unparseable, it assumes the default XMPP port. The hostname may be 52 // unparseable, it assumes the default XMPP port. The hostname may be
52 // empty. 53 // empty.
53 net::HostPortPair ParseRedirectText(const std::string& redirect_text) { 54 net::HostPortPair ParseRedirectText(const std::string& redirect_text) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 client_settings.token_service(), 162 client_settings.token_service(),
162 login_settings_.auth_mechanism()); 163 login_settings_.auth_mechanism());
163 xmpp_connection_.reset( 164 xmpp_connection_.reset(
164 new XmppConnection(client_settings, 165 new XmppConnection(client_settings,
165 login_settings_.request_context_getter(), 166 login_settings_.request_context_getter(),
166 this, 167 this,
167 pre_xmpp_auth)); 168 pre_xmpp_auth));
168 } 169 }
169 170
170 } // namespace notifier 171 } // namespace notifier
OLDNEW
« no previous file with comments | « no previous file | jingle/notifier/listener/push_client.h » ('j') | sync/notifier/chrome_invalidation_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698