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

Unified Diff: remoting/protocol/me2me_host_authenticator_factory.cc

Issue 12389010: Refactor of Authenticator to allow it to ProcessMessage asynchronously and then call a callback (Closed) Base URL: http://git.chromium.org/chromium/src.git@host_key_pair
Patch Set: Rebase missed one include Created 7 years, 10 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
« no previous file with comments | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/negotiating_authenticator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/me2me_host_authenticator_factory.cc
diff --git a/remoting/protocol/me2me_host_authenticator_factory.cc b/remoting/protocol/me2me_host_authenticator_factory.cc
index ad813f776dc6b741112a91505842f3d7b4198e92..c871b6c5cfafeabcb2f54f2b216bf2392f16765b 100644
--- a/remoting/protocol/me2me_host_authenticator_factory.cc
+++ b/remoting/protocol/me2me_host_authenticator_factory.cc
@@ -34,9 +34,11 @@ class RejectingAuthenticator : public Authenticator {
return INVALID_CREDENTIALS;
}
- virtual void ProcessMessage(const buzz::XmlElement* message) OVERRIDE {
+ virtual void ProcessMessage(const buzz::XmlElement* message,
+ const base::Closure& resume_callback) OVERRIDE {
DCHECK_EQ(state_, WAITING_MESSAGE);
state_ = REJECTED;
+ resume_callback.Run();
}
virtual scoped_ptr<buzz::XmlElement> GetNextMessage() OVERRIDE {
« no previous file with comments | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/negotiating_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698