Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: components/proximity_auth/webui/cryptauth_enroller_factory_impl.h

Issue 1302313004: Replace ProximityAuthUIDelegate with ProximityAuthClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proximity_auth_client
Patch Set: fixes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « components/proximity_auth/webui/BUILD.gn ('k') | components/proximity_auth/webui/cryptauth_enroller_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698