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

Unified Diff: remoting/protocol/negotiating_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: 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
Index: remoting/protocol/negotiating_authenticator.h
diff --git a/remoting/protocol/negotiating_authenticator.h b/remoting/protocol/negotiating_authenticator.h
index aabbf8827e21f675b99a1e05088b3f7b90dc5867..61b471b559053aee70e74a1b2e5ddf534cb4001e 100644
--- a/remoting/protocol/negotiating_authenticator.h
+++ b/remoting/protocol/negotiating_authenticator.h
@@ -40,7 +40,8 @@ class NegotiatingAuthenticator : public Authenticator {
// Authenticator interface.
virtual State state() const OVERRIDE;
virtual RejectionReason rejection_reason() const OVERRIDE;
- virtual void ProcessMessage(const buzz::XmlElement* message) OVERRIDE;
+ virtual void ProcessMessage(const buzz::XmlElement* message,
+ const base::Closure& resume_callback) OVERRIDE;
virtual scoped_ptr<buzz::XmlElement> GetNextMessage() OVERRIDE;
virtual scoped_ptr<ChannelAuthenticator>
CreateChannelAuthenticator() const OVERRIDE;
@@ -50,6 +51,8 @@ class NegotiatingAuthenticator : public Authenticator {
void AddMethod(const AuthenticationMethod& method);
void CreateAuthenticator(State initial_state);
+ void UpdateState(const base::Closure& resume_callback);
+
bool is_host_side() const;
// Used only for host authenticators.
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.cc ('k') | remoting/protocol/negotiating_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698