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

Side by Side Diff: chromeos/dbus/fake_biod_enroll_session_client.h

Issue 2578323004: cros: Fake implementation of DBUS biometrics client. (Closed)
Patch Set: Rebased to master. Created 3 years, 9 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 2017 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 CHROMEOS_DBUS_FAKE_BIOD_ENROLL_SESSION_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BIOD_ENROLL_SESSION_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/biod_enroll_session_client.h"
12
13 namespace chromeos {
14
15 class CHROMEOS_EXPORT FakeBiodEnrollSessionClient
16 : public BiodEnrollSessionClient {
17 public:
18 FakeBiodEnrollSessionClient();
19 ~FakeBiodEnrollSessionClient() override;
20
21 // BiodEnrollSessionClient overrides
22 void Init(dbus::Bus* bus) override;
23 void Cancel(const dbus::ObjectPath& enroll_session_path) override;
24
25 private:
26 // Note: This should remain the last member so it'll be destroyed and
27 // invalidate its weak pointers before any other members are destroyed.
28 base::WeakPtrFactory<FakeBiodEnrollSessionClient> weak_ptr_factory_;
rkc 2017/03/21 00:01:32 Can we instead have this a protected member of Bio
sammiequon 2017/03/21 01:09:53 Removed this. Seems like it won't be needed.
29
30 DISALLOW_COPY_AND_ASSIGN(FakeBiodEnrollSessionClient);
31 };
32
33 } // namespace chromeos
34
35 #endif // CHROMEOS_DBUS_FAKE_BIOD_ENROLL_SESSION_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_biod_biometrics_manager_client.cc ('k') | chromeos/dbus/fake_biod_enroll_session_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698