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

Side by Side Diff: components/proximity_auth/remote_status_update.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_REMOTE_STATUS_UPDATE_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_REMOTE_STATUS_UPDATE_H
6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_STATUS_UPDATE_H 6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_STATUS_UPDATE_H
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9 9
10 namespace base { 10 namespace base {
11 class DictionaryValue; 11 class DictionaryValue;
12 } 12 }
13 13
14 namespace proximity_auth { 14 namespace proximity_auth {
15 15
16 // Corresponds to the possible values for the 'user_presence' status update 16 // Corresponds to the possible values for the 'user_presence' status update
17 // field. 17 // field.
18 enum UserPresence { 18 enum UserPresence {
(...skipping 14 matching lines...) Expand all
33 enum TrustAgentState { 33 enum TrustAgentState {
34 TRUST_AGENT_ENABLED, 34 TRUST_AGENT_ENABLED,
35 TRUST_AGENT_DISABLED, 35 TRUST_AGENT_DISABLED,
36 TRUST_AGENT_UNSUPPORTED, 36 TRUST_AGENT_UNSUPPORTED,
37 }; 37 };
38 38
39 // Represents a 'status_update' message received from the remote device. 39 // Represents a 'status_update' message received from the remote device.
40 struct RemoteStatusUpdate { 40 struct RemoteStatusUpdate {
41 // Parses a dictionary value into a RemoteStatusUpdate. Returns a null pointer 41 // Parses a dictionary value into a RemoteStatusUpdate. Returns a null pointer
42 // if the serialized dictionary value is not valid. 42 // if the serialized dictionary value is not valid.
43 static scoped_ptr<RemoteStatusUpdate> Deserialize( 43 static std::unique_ptr<RemoteStatusUpdate> Deserialize(
44 const base::DictionaryValue& serialized_value); 44 const base::DictionaryValue& serialized_value);
45 45
46 UserPresence user_presence; 46 UserPresence user_presence;
47 SecureScreenLockState secure_screen_lock_state; 47 SecureScreenLockState secure_screen_lock_state;
48 TrustAgentState trust_agent_state; 48 TrustAgentState trust_agent_state;
49 }; 49 };
50 50
51 } // namespace proximity_auth 51 } // namespace proximity_auth
52 52
53 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_STATUS_UPDATE_H 53 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_STATUS_UPDATE_H
OLDNEW
« no previous file with comments | « components/proximity_auth/remote_device_loader_unittest.cc ('k') | components/proximity_auth/remote_status_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698