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

Unified Diff: remoting/protocol/authenticator.h

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: 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
Index: remoting/protocol/authenticator.h
diff --git a/remoting/protocol/authenticator.h b/remoting/protocol/authenticator.h
index b8aa37d4544220d010195f63a2e89be64f09f126..beb195043c7363480e978ccb4781156e670152f8 100644
--- a/remoting/protocol/authenticator.h
+++ b/remoting/protocol/authenticator.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
namespace buzz {
@@ -83,7 +84,8 @@ class Authenticator {
// Called in response to incoming message received from the peer.
// Should only be called when in WAITING_MESSAGE state. Caller
// retains ownership of |message|.
- virtual void ProcessMessage(const buzz::XmlElement* message) = 0;
+ virtual void ProcessMessage(const base::Closure& resume_callback,
+ const buzz::XmlElement* message) = 0;
// Must be called when in MESSAGE_READY state. Returns next
// authentication message that needs to be sent to the peer.

Powered by Google App Engine
This is Rietveld 408576698