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

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

Issue 8589003: Add OVERRIDE to jingle/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes Created 9 years, 1 month 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
« no previous file with comments | « jingle/notifier/communicator/login.h ('k') | jingle/notifier/listener/mediator_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef JINGLE_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_ 5 #ifndef JINGLE_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_
6 #define JINGLE_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_ 6 #define JINGLE_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "jingle/notifier/base/xmpp_connection.h" 12 #include "jingle/notifier/base/xmpp_connection.h"
12 #include "jingle/notifier/communicator/xmpp_connection_generator.h" 13 #include "jingle/notifier/communicator/xmpp_connection_generator.h"
13 #include "talk/xmpp/xmppengine.h" 14 #include "talk/xmpp/xmppengine.h"
14 15
15 namespace buzz { 16 namespace buzz {
16 class XmppTaskParentInterface; 17 class XmppTaskParentInterface;
17 } // namespace buzz 18 } // namespace buzz
18 19
19 namespace notifier { 20 namespace notifier {
(...skipping 19 matching lines...) Expand all
39 int redirect_port) = 0; 40 int redirect_port) = 0;
40 }; 41 };
41 42
42 // Does not take ownership of |login_settings| or |delegate|. 43 // Does not take ownership of |login_settings| or |delegate|.
43 // Neither may be NULL. 44 // Neither may be NULL.
44 SingleLoginAttempt(LoginSettings* login_settings, Delegate* delegate); 45 SingleLoginAttempt(LoginSettings* login_settings, Delegate* delegate);
45 46
46 virtual ~SingleLoginAttempt(); 47 virtual ~SingleLoginAttempt();
47 48
48 // XmppConnection::Delegate implementation. 49 // XmppConnection::Delegate implementation.
49 virtual void OnConnect(base::WeakPtr<buzz::XmppTaskParentInterface> parent); 50 virtual void OnConnect(
51 base::WeakPtr<buzz::XmppTaskParentInterface> parent) OVERRIDE;
50 virtual void OnError(buzz::XmppEngine::Error error, 52 virtual void OnError(buzz::XmppEngine::Error error,
51 int error_subcode, 53 int error_subcode,
52 const buzz::XmlElement* stream_error); 54 const buzz::XmlElement* stream_error) OVERRIDE;
53 55
54 // XmppConnectionGenerator::Delegate implementation. 56 // XmppConnectionGenerator::Delegate implementation.
55 virtual void OnNewSettings(const ConnectionSettings& new_settings); 57 virtual void OnNewSettings(const ConnectionSettings& new_settings) OVERRIDE;
56 virtual void OnExhaustedSettings(bool successfully_resolved_dns, 58 virtual void OnExhaustedSettings(bool successfully_resolved_dns,
57 int first_dns_error); 59 int first_dns_error) OVERRIDE;
58 60
59 private: 61 private:
60 LoginSettings* login_settings_; 62 LoginSettings* login_settings_;
61 Delegate* delegate_; 63 Delegate* delegate_;
62 XmppConnectionGenerator connection_generator_; 64 XmppConnectionGenerator connection_generator_;
63 scoped_ptr<XmppConnection> xmpp_connection_; 65 scoped_ptr<XmppConnection> xmpp_connection_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(SingleLoginAttempt); 67 DISALLOW_COPY_AND_ASSIGN(SingleLoginAttempt);
66 }; 68 };
67 69
68 } // namespace notifier 70 } // namespace notifier
69 71
70 #endif // JINGLE_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_ 72 #endif // JINGLE_NOTIFIER_COMMUNICATOR_SINGLE_LOGIN_ATTEMPT_H_
OLDNEW
« no previous file with comments | « jingle/notifier/communicator/login.h ('k') | jingle/notifier/listener/mediator_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698