1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_PROXIMITY_AUTH_WEBUI_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H
6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H
8 #include "base/memory/scoped_ptr.h"
9 #include "components/proximity_auth/cryptauth/cryptauth_enroller.h"
11 namespace proximity_auth
{
13 class ProximityAuthUIDelegate
;
15 // Implementation of CryptAuthEnrollerFactory with dependencies on Chrome.
16 // TODO(tengs): Move this class out of the webui directory when we are ready to
17 // do enrollments in Chrome.
18 class CryptAuthEnrollerFactoryImpl
: public CryptAuthEnrollerFactory
{
20 explicit CryptAuthEnrollerFactoryImpl(ProximityAuthUIDelegate
* delegate
);
21 ~CryptAuthEnrollerFactoryImpl() override
;
23 // CryptAuthEnrollerFactory:
24 scoped_ptr
<CryptAuthEnroller
> CreateInstance() override
;
27 // |delegate_| is not owned and must outlive this instance.
28 ProximityAuthUIDelegate
* const delegate_
;
30 DISALLOW_COPY_AND_ASSIGN(CryptAuthEnrollerFactoryImpl
);
33 } // namespace proximity_auth
35 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H