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

Unified Diff: remoting/protocol/it2me_host_authenticator_factory.cc

Issue 2724223003: Disconnect all users if too many connection requests are received for It2Me (Closed)
Patch Set: Fixing another non-Windows build error Created 3 years, 9 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.cc
diff --git a/remoting/protocol/it2me_host_authenticator_factory.cc b/remoting/protocol/it2me_host_authenticator_factory.cc
index 87f09a1a139fd15583a8797ca0c0697da14b0969..322d569bc8bbce5ad7d61c2ab6fc78628957b6a9 100644
--- a/remoting/protocol/it2me_host_authenticator_factory.cc
+++ b/remoting/protocol/it2me_host_authenticator_factory.cc
@@ -21,11 +21,13 @@ It2MeHostAuthenticatorFactory::It2MeHostAuthenticatorFactory(
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
const std::string& access_code_hash,
- const ValidatingAuthenticator::ValidationCallback& callback)
+ const ValidatingAuthenticator::ValidationCallback& incoming_callback,
+ const ValidatingAuthenticator::ValidationCallback& accepted_callback)
: local_cert_(local_cert),
key_pair_(key_pair),
access_code_hash_(access_code_hash),
- validation_callback_(callback) {}
+ incoming_callback_(incoming_callback),
+ accepted_callback_(accepted_callback) {}
It2MeHostAuthenticatorFactory::~It2MeHostAuthenticatorFactory() {}
@@ -39,7 +41,8 @@ It2MeHostAuthenticatorFactory::CreateAuthenticator(
nullptr));
return base::MakeUnique<ValidatingAuthenticator>(
- remote_jid, validation_callback_, std::move(authenticator));
+ remote_jid, incoming_callback_, accepted_callback_,
+ std::move(authenticator));
}
} // namespace protocol

Powered by Google App Engine
This is Rietveld 408576698