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

Side by Side Diff: components/proximity_auth/webui/reachable_phone_flow.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_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
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_
OLDNEW
« no previous file with comments | « components/proximity_auth/webui/proximity_auth_webui_handler.cc ('k') | components/proximity_auth/wire_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698