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

Unified Diff: remoting/protocol/negotiating_client_authenticator.h

Issue 12475020: Client plugin changes to support third party authentication. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: extraneous override Created 7 years, 8 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_client_authenticator.h
diff --git a/remoting/protocol/negotiating_client_authenticator.h b/remoting/protocol/negotiating_client_authenticator.h
index 0927bd78fa1fa6ee863235be253cc9b5d3e46bee..d2047fe7a9e485bba77c6ef36f7fb9b9e971eaf0 100644
--- a/remoting/protocol/negotiating_client_authenticator.h
+++ b/remoting/protocol/negotiating_client_authenticator.h
@@ -14,6 +14,7 @@
#include "remoting/protocol/authentication_method.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/negotiating_authenticator_base.h"
+#include "remoting/protocol/third_party_client_authenticator.h"
namespace remoting {
namespace protocol {
@@ -29,6 +30,7 @@ class NegotiatingClientAuthenticator : public NegotiatingAuthenticatorBase {
NegotiatingClientAuthenticator(
const std::string& authentication_tag,
const FetchSecretCallback& fetch_secret_callback,
+ scoped_ptr<ThirdPartyClientAuthenticator::TokenFetcher> token_fetcher_,
const std::vector<AuthenticationMethod>& methods);
virtual ~NegotiatingClientAuthenticator();
@@ -53,8 +55,16 @@ class NegotiatingClientAuthenticator : public NegotiatingAuthenticatorBase {
const base::Closure& resume_callback,
const std::string& shared_secret);
+ // Used for both authenticators.
std::string authentication_tag_;
+
+ // Used for shared secret authenticators.
FetchSecretCallback fetch_secret_callback_;
+
+ // Used for third party authenticators.
+ scoped_ptr<ThirdPartyClientAuthenticator::TokenFetcher> token_fetcher_;
+
+ // Internal NegotiatingClientAuthenticator data.
bool method_set_by_host_;
base::WeakPtrFactory<NegotiatingClientAuthenticator> weak_factory_;
« no previous file with comments | « remoting/protocol/negotiating_authenticator_unittest.cc ('k') | remoting/protocol/negotiating_client_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698