forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcryptauth_enroller_factory_impl.h
34 lines (25 loc) · 1.19 KB
/
cryptauth_enroller_factory_impl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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 "base/macros.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