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

Unified Diff: jingle/notifier/communicator/single_login_attempt.h

Issue 10545170: [Sync] Propagate XMPP auth errors to SyncNotifierObservers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 8 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 side-by-side diff with in-line comments
Download patch
Index: jingle/notifier/communicator/single_login_attempt.h
diff --git a/jingle/notifier/communicator/single_login_attempt.h b/jingle/notifier/communicator/single_login_attempt.h
index 1e0332da39b85b5877d6368a8851699712a8cc52..d0813ee9b881846211e9d3ab4ac93f7612a8ece9 100644
--- a/jingle/notifier/communicator/single_login_attempt.h
+++ b/jingle/notifier/communicator/single_login_attempt.h
@@ -26,12 +26,17 @@ struct ServerInformation;
// login attempt.
class SingleLoginAttempt : public XmppConnection::Delegate {
public:
+ // At most one delegate method will be called, depending on the
+ // result of the login attempt. After the delegate method is
+ // called, this class won't do anything anymore until it is
+ // destroyed, at which point it will disconnect if necessary.
class Delegate {
public:
virtual void OnConnect(
base::WeakPtr<buzz::XmppTaskParentInterface> base_task) = 0;
virtual void OnNeedReconnect() = 0;
virtual void OnRedirect(const ServerInformation& redirect_server) = 0;
+ virtual void OnRejectedCredentials() = 0;
protected:
virtual ~Delegate();

Powered by Google App Engine
This is Rietveld 408576698