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_WEBUI_REACHABLE_PHONE_FLOW_H_ | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_WEBUI_REACHABLE_PHONE_FLOW_H_ |
6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_REACHABLE_PHONE_FLOW_H_ | 6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_REACHABLE_PHONE_FLOW_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/callback.h" | 12 #include "base/callback.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 | 15 |
16 namespace cryptauth { | 16 namespace cryptauth { |
17 class ExternalDeviceInfo; | 17 class ExternalDeviceInfo; |
18 class FindEligibleUnlockDevicesResponse; | 18 class FindEligibleUnlockDevicesResponse; |
19 class SendDeviceSyncTickleResponse; | 19 class SendDeviceSyncTickleResponse; |
20 }; | 20 }; |
21 | 21 |
22 namespace proximity_auth { | 22 namespace proximity_auth { |
23 | 23 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const cryptauth::FindEligibleUnlockDevicesResponse& response); | 61 const cryptauth::FindEligibleUnlockDevicesResponse& response); |
62 | 62 |
63 // Factory for creating CryptAuthClient instances. Not owned and must outlive | 63 // Factory for creating CryptAuthClient instances. Not owned and must outlive |
64 // |this| instance. | 64 // |this| instance. |
65 CryptAuthClientFactory* client_factory_; | 65 CryptAuthClientFactory* client_factory_; |
66 | 66 |
67 // Callback invoked when the flow completes. | 67 // Callback invoked when the flow completes. |
68 ReachablePhonesCallback callback_; | 68 ReachablePhonesCallback callback_; |
69 | 69 |
70 // The client making the current CryptAuth API call. | 70 // The client making the current CryptAuth API call. |
71 scoped_ptr<CryptAuthClient> client_; | 71 std::unique_ptr<CryptAuthClient> client_; |
72 | 72 |
73 base::WeakPtrFactory<ReachablePhoneFlow> weak_ptr_factory_; | 73 base::WeakPtrFactory<ReachablePhoneFlow> weak_ptr_factory_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(ReachablePhoneFlow); | 75 DISALLOW_COPY_AND_ASSIGN(ReachablePhoneFlow); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace proximity_auth | 78 } // namespace proximity_auth |
79 | 79 |
80 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_REACHABLE_PHONE_FLOW_H_ | 80 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_REACHABLE_PHONE_FLOW_H_ |
OLD | NEW |