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

Side by Side Diff: chrome/common/net/notifier/communicator/single_login_attempt.h

Issue 2255007: New libjingle integrated to chrome. (Closed)
Patch Set: - Created 10 years, 6 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_COMMON_NET_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_ 5 #ifndef CHROME_COMMON_NET_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_
6 #define CHROME_COMMON_NET_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_ 6 #define CHROME_COMMON_NET_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/net/notifier/communicator/login.h" 10 #include "chrome/common/net/notifier/communicator/login.h"
(...skipping 28 matching lines...) Expand all
39 // Handles all of the aspects of a single login attempt (across multiple ip 39 // Handles all of the aspects of a single login attempt (across multiple ip
40 // addresses) and maintainence. By containing this within one class, when 40 // addresses) and maintainence. By containing this within one class, when
41 // another login attempt is made, this class will be disposed and all of the 41 // another login attempt is made, this class will be disposed and all of the
42 // signalling for the previous login attempt will be cleaned up immediately. 42 // signalling for the previous login attempt will be cleaned up immediately.
43 // 43 //
44 // This is a task to allow for cleaning this up when a signal is being fired. 44 // This is a task to allow for cleaning this up when a signal is being fired.
45 // Technically, delete this during the firing of a signal could work but it is 45 // Technically, delete this during the firing of a signal could work but it is
46 // fragile. 46 // fragile.
47 class SingleLoginAttempt : public talk_base::Task, public sigslot::has_slots<> { 47 class SingleLoginAttempt : public talk_base::Task, public sigslot::has_slots<> {
48 public: 48 public:
49 SingleLoginAttempt(talk_base::Task* parent, 49 SingleLoginAttempt(talk_base::TaskParent* parent,
50 LoginSettings* login_settings, 50 LoginSettings* login_settings,
51 bool successful_connection); 51 bool successful_connection);
52 ~SingleLoginAttempt(); 52 ~SingleLoginAttempt();
53 virtual int ProcessStart(); 53 virtual int ProcessStart();
54 void UseNextConnection(); 54 void UseNextConnection();
55 void UseCurrentConnection(); 55 void UseCurrentConnection();
56 56
57 buzz::XmppClient* xmpp_client() { 57 buzz::XmppClient* xmpp_client() {
58 return client_; 58 return client_;
59 } 59 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 LoginSettings* login_settings_; 129 LoginSettings* login_settings_;
130 buzz::XmppClient* client_; 130 buzz::XmppClient* client_;
131 scoped_ptr<XmppConnectionGenerator> connection_generator_; 131 scoped_ptr<XmppConnectionGenerator> connection_generator_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(SingleLoginAttempt); 133 DISALLOW_COPY_AND_ASSIGN(SingleLoginAttempt);
134 }; 134 };
135 135
136 } // namespace notifier 136 } // namespace notifier
137 137
138 #endif // CHROME_COMMON_NET_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_ 138 #endif // CHROME_COMMON_NET_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_
OLDNEW
« no previous file with comments | « chrome/common/net/notifier/communicator/login.cc ('k') | chrome/common/net/notifier/communicator/single_login_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698