| 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
|
|
|