OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef COMPONENTS_PROXIMITY_AUTH_WEBUI_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H | |
6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "components/proximity_auth/cryptauth/cryptauth_enroller.h" | |
10 | |
11 namespace proximity_auth { | |
12 | |
13 class ProximityAuthUIDelegate; | |
14 | |
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 { | |
19 public: | |
20 explicit CryptAuthEnrollerFactoryImpl(ProximityAuthUIDelegate* delegate); | |
21 ~CryptAuthEnrollerFactoryImpl() override; | |
22 | |
23 // CryptAuthEnrollerFactory: | |
24 scoped_ptr<CryptAuthEnroller> CreateInstance() override; | |
25 | |
26 private: | |
27 // |delegate_| is not owned and must outlive this instance. | |
28 ProximityAuthUIDelegate* const delegate_; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(CryptAuthEnrollerFactoryImpl); | |
31 }; | |
32 | |
33 } // namespace proximity_auth | |
34 | |
35 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_CRYPTAUTH_ENROLLER_FACTORY_IMPL_H | |
OLD | NEW |