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

Unified Diff: remoting/protocol/third_party_client_authenticator.h

Issue 1770923002: Remove dependency on V2Authenticator from ThirdParty and pairing authenticators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/third_party_client_authenticator.h
diff --git a/remoting/protocol/third_party_client_authenticator.h b/remoting/protocol/third_party_client_authenticator.h
index 823aad4321a54ed633fec385ee05c47eb816beda..7ebc04f4afbf813c30eccfd8906f52af367605d7 100644
--- a/remoting/protocol/third_party_client_authenticator.h
+++ b/remoting/protocol/third_party_client_authenticator.h
@@ -55,9 +55,11 @@ class ThirdPartyClientAuthenticator : public ThirdPartyAuthenticatorBase {
const TokenFetchedCallback& token_fetched_callback) = 0;
};
- // Creates a third-party client authenticator for the host with the given
- // |host_public_key|. |token_fetcher| is used to get the authentication token.
- explicit ThirdPartyClientAuthenticator(
+ // Creates a third-party client authenticator.
+ // |create_base_authenticator_callback| is used to create the base
+ // authenticator. |token_fetcher| is used to get the authentication token.
+ ThirdPartyClientAuthenticator(
+ const CreateBaseAuthenticatorCallback& create_base_authenticator_callback,
scoped_ptr<TokenFetcher> token_fetcher);
~ThirdPartyClientAuthenticator() override;
@@ -72,8 +74,9 @@ class ThirdPartyClientAuthenticator : public ThirdPartyAuthenticatorBase {
const std::string& third_party_token,
const std::string& shared_secret);
- std::string token_;
+ CreateBaseAuthenticatorCallback create_base_authenticator_callback_;
scoped_ptr<TokenFetcher> token_fetcher_;
+ std::string token_;
DISALLOW_COPY_AND_ASSIGN(ThirdPartyClientAuthenticator);
};
« no previous file with comments | « remoting/protocol/third_party_authenticator_unittest.cc ('k') | remoting/protocol/third_party_client_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698