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

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

Issue 2421323002: Created new account type for ARC++ kiosk. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 (c) 2013 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 namespace chromeos { 11 namespace chromeos {
12 class CrosSettings; 12 class CrosSettings;
13 class OwnerSettingsServiceChromeOS; 13 class OwnerSettingsServiceChromeOS;
14 } 14 }
15 15
16 namespace policy { 16 namespace policy {
17 17
18 // This must match DeviceLocalAccountInfoProto.AccountType in 18 // This must match DeviceLocalAccountInfoProto.AccountType in
19 // chrome_device_policy.proto. 19 // chrome_device_policy.proto.
20 struct DeviceLocalAccount { 20 struct DeviceLocalAccount {
21 enum Type { 21 enum Type {
22 // A login-less, policy-configured browsing session. 22 // A login-less, policy-configured browsing session.
23 TYPE_PUBLIC_SESSION, 23 TYPE_PUBLIC_SESSION,
24 // An account that serves as a container for a single full-screen app. 24 // An account that serves as a container for a single full-screen app.
25 TYPE_KIOSK_APP, 25 TYPE_KIOSK_APP,
26 // An account that serves as a container for a single full-screen
27 // Android app.
28 TYPE_ARC_KIOSK_APP,
26 // Sentinel, must be last. 29 // Sentinel, must be last.
27 TYPE_COUNT 30 TYPE_COUNT
28 }; 31 };
29 32
30 DeviceLocalAccount(Type type, 33 DeviceLocalAccount(Type type,
31 const std::string& account_id, 34 const std::string& account_id,
32 const std::string& kiosk_app_id, 35 const std::string& kiosk_app_id,
33 const std::string& kiosk_app_update_url); 36 const std::string& kiosk_app_update_url);
34 DeviceLocalAccount(const DeviceLocalAccount& other); 37 DeviceLocalAccount(const DeviceLocalAccount& other);
35 ~DeviceLocalAccount(); 38 ~DeviceLocalAccount();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void SetDeviceLocalAccounts(chromeos::OwnerSettingsServiceChromeOS* service, 75 void SetDeviceLocalAccounts(chromeos::OwnerSettingsServiceChromeOS* service,
73 const std::vector<DeviceLocalAccount>& accounts); 76 const std::vector<DeviceLocalAccount>& accounts);
74 77
75 // Retrieves a list of device-local accounts from |cros_settings|. 78 // Retrieves a list of device-local accounts from |cros_settings|.
76 std::vector<DeviceLocalAccount> GetDeviceLocalAccounts( 79 std::vector<DeviceLocalAccount> GetDeviceLocalAccounts(
77 chromeos::CrosSettings* cros_settings); 80 chromeos::CrosSettings* cros_settings);
78 81
79 } // namespace policy 82 } // namespace policy
80 83
81 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ 84 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/mock_user_manager.h ('k') | chrome/browser/chromeos/policy/device_local_account.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698