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

Unified Diff: remoting/host/host_token_validator_factory.h

Issue 12313085: Host-side third party token validation (Closed) Base URL: http://git.chromium.org/chromium/src.git@third_party_auth_protocol
Patch Set: Created 7 years, 10 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/host/host_token_validator_factory.h
diff --git a/remoting/host/host_token_validator_factory.h b/remoting/host/host_token_validator_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..444891d1fe063050f0b6bace6140068b961b3182
--- /dev/null
+++ b/remoting/host/host_token_validator_factory.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_HOST_TOKEN_VALIDATOR_FACTORY_H_
+#define REMOTING_HOST_HOST_TOKEN_VALIDATOR_FACTORY_H_
+
+#include <set>
+#include <string>
+
+#include "base/basictypes.h"
+#include "net/url_request/url_request_context_getter.h"
+#include "remoting/protocol/third_party_authenticator.h"
+
+namespace remoting {
+
+class HostTokenValidatorFactory
Wez 2013/03/06 00:47:02 nit: Do we need "host" in the class name? It's not
rmsousa 2013/03/25 22:45:58 That's the name of the base class... I followed th
+ : public protocol::ThirdPartyAuthenticator::TokenValidatorFactory {
Wez 2013/03/06 01:01:08 Add a comment explaining what properties the valid
rmsousa 2013/03/25 22:45:58 Done.
+ public:
+ HostTokenValidatorFactory(
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter);
+ virtual ~HostTokenValidatorFactory();
+
+ virtual scoped_ptr<protocol::ThirdPartyAuthenticator::TokenValidator>
+ CreateTokenValidator() OVERRIDE;
+
+ private:
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
+ DISALLOW_COPY_AND_ASSIGN(HostTokenValidatorFactory);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_HOST_TOKEN_VALIDATOR_FACTORY_H_
« no previous file with comments | « no previous file | remoting/host/host_token_validator_factory.cc » ('j') | remoting/host/host_token_validator_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698