OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H |
6 #define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H | 6 #define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/memory/scoped_ptr.h" |
11 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" | 12 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" |
12 | 13 |
13 namespace proximity_auth { | 14 namespace proximity_auth { |
14 | 15 |
15 // Interface for enrolling a device with CryptAuth. | 16 // Interface for enrolling a device with CryptAuth. |
16 class CryptAuthEnroller { | 17 class CryptAuthEnroller { |
17 public: | 18 public: |
18 virtual ~CryptAuthEnroller() {} | 19 virtual ~CryptAuthEnroller() {} |
19 | 20 |
20 // Enrolls the device: | 21 // Enrolls the device: |
(...skipping 16 matching lines...) Expand all Loading... |
37 class CryptAuthEnrollerFactory { | 38 class CryptAuthEnrollerFactory { |
38 public: | 39 public: |
39 virtual ~CryptAuthEnrollerFactory() {} | 40 virtual ~CryptAuthEnrollerFactory() {} |
40 | 41 |
41 virtual scoped_ptr<CryptAuthEnroller> CreateInstance() = 0; | 42 virtual scoped_ptr<CryptAuthEnroller> CreateInstance() = 0; |
42 }; | 43 }; |
43 | 44 |
44 } // namespace proximity_auth | 45 } // namespace proximity_auth |
45 | 46 |
46 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H | 47 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H |
OLD | NEW |