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

Unified Diff: remoting/protocol/it2me_host_authenticator_factory.h

Issue 2271933002: Updating It2Me to use the new ValidatingAuthenticator class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@authenticator
Patch Set: Merging upstream changes Created 4 years, 4 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/it2me_host_authenticator_factory.h
diff --git a/remoting/protocol/it2me_host_authenticator_factory.h b/remoting/protocol/it2me_host_authenticator_factory.h
index fe244c2f3ffaa67eefbe70b0eeb147c394f72467..1be56835df9718633451ded4a0178a31c7ab6e6b 100644
--- a/remoting/protocol/it2me_host_authenticator_factory.h
+++ b/remoting/protocol/it2me_host_authenticator_factory.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "remoting/protocol/authenticator.h"
+#include "remoting/protocol/validating_authenticator.h"
namespace remoting {
@@ -23,10 +24,11 @@ namespace protocol {
// understands both the V2 and legacy V1 authentication mechanisms.
class It2MeHostAuthenticatorFactory : public AuthenticatorFactory {
public:
- It2MeHostAuthenticatorFactory(const std::string& local_cert,
- scoped_refptr<RsaKeyPair> key_pair,
- const std::string& access_code,
- const std::string& required_client_domain);
+ It2MeHostAuthenticatorFactory(
+ const std::string& local_cert,
+ scoped_refptr<RsaKeyPair> key_pair,
+ const std::string& access_code,
+ const ValidatingAuthenticator::ValidationCallback& callback);
~It2MeHostAuthenticatorFactory() override;
// AuthenticatorFactory interface.
@@ -38,7 +40,7 @@ class It2MeHostAuthenticatorFactory : public AuthenticatorFactory {
std::string local_cert_;
scoped_refptr<RsaKeyPair> key_pair_;
std::string access_code_hash_;
- std::string required_client_domain_;
+ ValidatingAuthenticator::ValidationCallback validation_callback_;
DISALLOW_COPY_AND_ASSIGN(It2MeHostAuthenticatorFactory);
};
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host_unittest.cc ('k') | remoting/protocol/it2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698