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

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

Issue 17109006: Device robot refresh token integrity validation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix remoting compile error on windows Created 7 years, 6 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/device_cloud_policy_manager_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <string> 9 #include <string>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Pref registration helper. 82 // Pref registration helper.
83 static void RegisterPrefs(PrefRegistrySimple* registry); 83 static void RegisterPrefs(PrefRegistrySimple* registry);
84 84
85 // Returns the device serial number, or an empty string if not available. 85 // Returns the device serial number, or an empty string if not available.
86 static std::string GetMachineID(); 86 static std::string GetMachineID();
87 87
88 // Returns the machine model, or an empty string if not available. 88 // Returns the machine model, or an empty string if not available.
89 static std::string GetMachineModel(); 89 static std::string GetMachineModel();
90 90
91 // Returns the robot 'email address' associated with the device robot
92 // account (sometimes called a service account) associated with this device
93 // during enterprise enrollment.
94 std::string GetRobotAccountId();
95
91 private: 96 private:
92 // Creates a new CloudPolicyClient. 97 // Creates a new CloudPolicyClient.
93 scoped_ptr<CloudPolicyClient> CreateClient(); 98 scoped_ptr<CloudPolicyClient> CreateClient();
94 99
95 // Starts policy refreshes if |store_| indicates a managed device and the 100 // Starts policy refreshes if |store_| indicates a managed device and the
96 // necessary dependencies have been provided via Initialize(). 101 // necessary dependencies have been provided via Initialize().
97 void StartIfManaged(); 102 void StartIfManaged();
98 103
99 // Handles completion signaled by |enrollment_handler_|. 104 // Handles completion signaled by |enrollment_handler_|.
100 void EnrollmentCompleted(const EnrollmentCallback& callback, 105 void EnrollmentCompleted(const EnrollmentCallback& callback,
(...skipping 15 matching lines...) Expand all
116 121
117 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> 122 scoped_ptr<chromeos::attestation::AttestationPolicyObserver>
118 attestation_policy_observer_; 123 attestation_policy_observer_;
119 124
120 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); 125 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS);
121 }; 126 };
122 127
123 } // namespace policy 128 } // namespace policy
124 129
125 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _ 130 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698