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

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

Issue 1240283002: Implementation of the device attributes API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension_api
Patch Set: Fixed build. Created 5 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Returns true if this device is managed by an enterprise (as opposed to 63 // Returns true if this device is managed by an enterprise (as opposed to
64 // a local owner). 64 // a local owner).
65 bool IsEnterpriseManaged(); 65 bool IsEnterpriseManaged();
66 66
67 // Returns the enterprise domain if device is managed. 67 // Returns the enterprise domain if device is managed.
68 std::string GetEnterpriseDomain() const; 68 std::string GetEnterpriseDomain() const;
69 69
70 // Returns the device asset ID if it is set. 70 // Returns the device asset ID if it is set.
71 std::string GetDeviceAssetID(); 71 std::string GetDeviceAssetID();
72 72
73 // Returns the cloud directory API ID or an empty string if it is not set.
74 std::string GetDirectoryApiID();
75
73 // Returns the device mode. For ChromeOS this function will return the mode 76 // Returns the device mode. For ChromeOS this function will return the mode
74 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been 77 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been
75 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet. 78 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet.
76 // For other OSes the function will always return DEVICE_MODE_CONSUMER. 79 // For other OSes the function will always return DEVICE_MODE_CONSUMER.
77 DeviceMode GetDeviceMode(); 80 DeviceMode GetDeviceMode();
78 81
79 // Get the enrollment configuration for the device as decided by various 82 // Get the enrollment configuration for the device as decided by various
80 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig() 83 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig()
81 // for details. 84 // for details.
82 EnrollmentConfig GetPrescribedEnrollmentConfig() const; 85 EnrollmentConfig GetPrescribedEnrollmentConfig() const;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 186 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
184 187
185 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; 188 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
186 189
187 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); 190 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);
188 }; 191 };
189 192
190 } // namespace policy 193 } // namespace policy
191 194
192 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 195 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698