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

Unified Diff: remoting/protocol/pairing_host_authenticator.h

Issue 16893002: Make the mapping from client id -> secret asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang errors. Created 7 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: remoting/protocol/pairing_host_authenticator.h
diff --git a/remoting/protocol/pairing_host_authenticator.h b/remoting/protocol/pairing_host_authenticator.h
index a4884c44a45b62b6ae8777c6a9d22022eed09cef..57c900c3fde279321f4e7ac866aa70876c910bec 100644
--- a/remoting/protocol/pairing_host_authenticator.h
+++ b/remoting/protocol/pairing_host_authenticator.h
@@ -7,6 +7,7 @@
#include "base/memory/weak_ptr.h"
#include "remoting/protocol/pairing_authenticator_base.h"
+#include "remoting/protocol/pairing_registry.h"
namespace remoting {
@@ -38,12 +39,19 @@ class PairingHostAuthenticator : public PairingAuthenticatorBase {
const SetAuthenticatorCallback& callback) OVERRIDE;
virtual void AddPairingElements(buzz::XmlElement* message) OVERRIDE;
+ // Continue processing a protocol message once the pairing information for
+ // the client id has been received.
+ void ProcessMessageWithPairing(const buzz::XmlElement* message,
+ const base::Closure& resume_callback,
+ PairingRegistry::Pairing pairing);
+
// Protocol state.
scoped_refptr<PairingRegistry> pairing_registry_;
std::string local_cert_;
scoped_refptr<RsaKeyPair> key_pair_;
const std::string& pin_;
bool protocol_error_;
+ bool waiting_for_paired_secret_;
base::WeakPtrFactory<PairingHostAuthenticator> weak_factory_;
« no previous file with comments | « remoting/protocol/negotiating_authenticator_unittest.cc ('k') | remoting/protocol/pairing_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698