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

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

Issue 14200028: Make CrosSettings and DeviceSettingsService non Lazy instances (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix LoginUtilsTest Created 7 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 | Annotate | Revision Log
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // |allowed_modes| specifies acceptable DEVICE_MODE_* constants for 49 // |allowed_modes| specifies acceptable DEVICE_MODE_* constants for
50 // enrollment. 50 // enrollment.
51 void StartEnrollment(const std::string& auth_token, 51 void StartEnrollment(const std::string& auth_token,
52 bool is_auto_enrollment, 52 bool is_auto_enrollment,
53 const AllowedDeviceModes& allowed_modes, 53 const AllowedDeviceModes& allowed_modes,
54 const EnrollmentCallback& callback); 54 const EnrollmentCallback& callback);
55 55
56 // Cancels a pending enrollment operation, if any. 56 // Cancels a pending enrollment operation, if any.
57 void CancelEnrollment(); 57 void CancelEnrollment();
58 58
59 // CloudPolicyManager
Mattias Nissler (ping if slow) 2013/04/16 16:09:51 colon.
stevenjb 2013/04/16 16:49:43 Done.
60 virtual void Shutdown() OVERRIDE;
61
59 // CloudPolicyStore::Observer: 62 // CloudPolicyStore::Observer:
60 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; 63 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE;
61 64
62 // Returns the device serial number, or an empty string if not available. 65 // Returns the device serial number, or an empty string if not available.
63 static std::string GetMachineID(); 66 static std::string GetMachineID();
64 67
65 // Returns the machine model, or an empty string if not available. 68 // Returns the machine model, or an empty string if not available.
66 static std::string GetMachineModel(); 69 static std::string GetMachineModel();
67 70
68 private: 71 private:
(...skipping 21 matching lines...) Expand all
90 93
91 // Non-null if there is an enrollment operation pending. 94 // Non-null if there is an enrollment operation pending.
92 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; 95 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_;
93 96
94 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); 97 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS);
95 }; 98 };
96 99
97 } // namespace policy 100 } // namespace policy
98 101
99 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _ 102 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698