blob: e8c5ca2caa103220971efa185868e76a618aeb01 (
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
|
// 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.
#include "components/proximity_auth/webui/cryptauth_enroller_factory_impl.h"
#include "components/proximity_auth/cryptauth/cryptauth_client.h"
#include "components/proximity_auth/cryptauth/cryptauth_enroller_impl.h"
#include "components/proximity_auth/cryptauth/secure_message_delegate.h"
#include "components/proximity_auth/webui/proximity_auth_ui_delegate.h"
namespace proximity_auth {
CryptAuthEnrollerFactoryImpl::CryptAuthEnrollerFactoryImpl(
ProximityAuthUIDelegate* delegate)
: delegate_(delegate) {
}
CryptAuthEnrollerFactoryImpl::~CryptAuthEnrollerFactoryImpl() {
}
scoped_ptr<CryptAuthEnroller> CryptAuthEnrollerFactoryImpl::CreateInstance() {
return make_scoped_ptr(
new CryptAuthEnrollerImpl(delegate_->CreateCryptAuthClientFactory(),
delegate_->CreateSecureMessageDelegate()));
}
} // namespace proximity_auth
|