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

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

Issue 11415094: Split UserCloudPolicyManager implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Crazy ProfileKeyedService hackery. Created 8 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 | 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_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Starts policy refreshes if |store_| indicates a managed device and the 69 // Starts policy refreshes if |store_| indicates a managed device and the
70 // necessary dependencies have been provided via Initialize(). 70 // necessary dependencies have been provided via Initialize().
71 void StartIfManaged(); 71 void StartIfManaged();
72 72
73 // Handles completion signaled by |enrollment_handler_|. 73 // Handles completion signaled by |enrollment_handler_|.
74 void EnrollmentCompleted(const EnrollmentCallback& callback, 74 void EnrollmentCompleted(const EnrollmentCallback& callback,
75 EnrollmentStatus status); 75 EnrollmentStatus status);
76 76
77 // Points to the same object as the base CloudPolicyManager::store(), but with 77 // Points to the same object as the base CloudPolicyManager::store(), but with
78 // actual device policy specific type. 78 // actual device policy specific type.
79 DeviceCloudPolicyStoreChromeOS* device_store_; 79 scoped_ptr<DeviceCloudPolicyStoreChromeOS> device_store_;
80 EnterpriseInstallAttributes* install_attributes_; 80 EnterpriseInstallAttributes* install_attributes_;
81 81
82 DeviceManagementService* device_management_service_; 82 DeviceManagementService* device_management_service_;
83 83
84 // PrefService instance to read the policy refresh rate from. 84 // PrefService instance to read the policy refresh rate from.
85 PrefService* local_state_; 85 PrefService* local_state_;
86 86
87 // Non-null if there is an enrollment operation pending. 87 // Non-null if there is an enrollment operation pending.
88 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; 88 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); 90 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS);
91 }; 91 };
92 92
93 } // namespace policy 93 } // namespace policy
94 94
95 #endif // CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 95 #endif // CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698