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

Side by Side Diff: components/proximity_auth/cryptauth/cryptauth_enroller.h

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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
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 <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" 12 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h"
13 13
14 namespace proximity_auth { 14 namespace proximity_auth {
15 15
16 // Interface for enrolling a device with CryptAuth. 16 // Interface for enrolling a device with CryptAuth.
17 class CryptAuthEnroller { 17 class CryptAuthEnroller {
18 public: 18 public:
19 virtual ~CryptAuthEnroller() {} 19 virtual ~CryptAuthEnroller() {}
20 20
21 // Enrolls the device: 21 // Enrolls the device:
(...skipping 10 matching lines...) Expand all
32 const cryptauth::GcmDeviceInfo& device_info, 32 const cryptauth::GcmDeviceInfo& device_info,
33 cryptauth::InvocationReason invocation_reason, 33 cryptauth::InvocationReason invocation_reason,
34 const EnrollmentFinishedCallback& callback) = 0; 34 const EnrollmentFinishedCallback& callback) = 0;
35 }; 35 };
36 36
37 // Interface for creating CryptAuthEnroller instances. 37 // Interface for creating CryptAuthEnroller instances.
38 class CryptAuthEnrollerFactory { 38 class CryptAuthEnrollerFactory {
39 public: 39 public:
40 virtual ~CryptAuthEnrollerFactory() {} 40 virtual ~CryptAuthEnrollerFactory() {}
41 41
42 virtual scoped_ptr<CryptAuthEnroller> CreateInstance() = 0; 42 virtual std::unique_ptr<CryptAuthEnroller> CreateInstance() = 0;
43 }; 43 };
44 44
45 } // namespace proximity_auth 45 } // namespace proximity_auth
46 46
47 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H 47 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ENROLLER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698