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

Unified Diff: components/proximity_auth/cryptauth_enroller_factory_impl.h

Issue 1308393007: Add CryptAuth managers to EasyUnlockServiceRegular (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows compile Created 5 years, 4 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: components/proximity_auth/cryptauth_enroller_factory_impl.h
diff --git a/components/proximity_auth/cryptauth_enroller_factory_impl.h b/components/proximity_auth/cryptauth_enroller_factory_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..cdeb0161174cfcc9add8a0bc2804cf85bd266ed3
--- /dev/null
+++ b/components/proximity_auth/cryptauth_enroller_factory_impl.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H
+#define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H
+
+#include "components/proximity_auth/cryptauth/cryptauth_enroller.h"
+#include "components/proximity_auth/proximity_auth_client.h"
+
+namespace proximity_auth {
+
+// Implementation of CryptAuthEnrollerFactory. Note that this class is in the
+// proximity_auth/ rather than the cryptauth/ directory because of the
+// dependency on ProximityAuthClient.
+class CryptAuthEnrollerFactoryImpl : public CryptAuthEnrollerFactory {
+ public:
+ explicit CryptAuthEnrollerFactoryImpl(
+ ProximityAuthClient* proximity_auth_client);
+ ~CryptAuthEnrollerFactoryImpl() override;
+
+ // CryptAuthEnrollerFactory:
+ scoped_ptr<CryptAuthEnroller> CreateInstance() override;
+
+ private:
+ proximity_auth::ProximityAuthClient* proximity_auth_client_;
+
+ DISALLOW_COPY_AND_ASSIGN(CryptAuthEnrollerFactoryImpl);
+};
+
+} // namespace proximity_auth
+
+#endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H

Powered by Google App Engine
This is Rietveld 408576698