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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account.h

Issue 14927015: Translate device-local account IDs to user IDs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_
7
8 #include <string>
9 #include <vector>
10
11 namespace base {
12 class ListValue;
13 }
14
15 namespace policy {
16
17 // This must match DeviceLocalAccountInfoProto.AccountType in
18 // chrome_device_policy.proto.
19 struct DeviceLocalAccount {
20 enum Type {
21 // A login-less, policy-configured browsing session.
22 TYPE_PUBLIC_SESSION,
23 // An account that serves as a container for a single full-screen app.
24 TYPE_KIOSK_APP,
25 // Sentinel, must be last.
26 TYPE_COUNT
27 };
28
29 DeviceLocalAccount(Type type,
30 const std::string& account_id,
31 const std::string& kiosk_app_id,
32 const std::string& kiosk_app_update_url);
33
34 Type type;
35 std::string account_id;
36 std::string user_id;
37 std::string kiosk_app_id;
38 std::string kiosk_app_update_url;
39 };
40
41 std::string GenerateDeviceLocalAccountUserId(const std::string& account_id,
42 DeviceLocalAccount::Type type);
43
44 std::vector<DeviceLocalAccount> DecodeDeviceLocalAccountsList(
Mattias Nissler (ping if slow) 2013/05/15 08:46:40 Could use a comment mentioning what format |list|
bartfab (slow) 2013/05/17 11:14:28 Done.
45 const base::ListValue* list);
46
47 } // namespace policy
48
49 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698