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_ |