summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/cryptauth_enroller_factory_impl.h
blob: cdeb0161174cfcc9add8a0bc2804cf85bd266ed3 (plain)
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
// 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