OLD | NEW |
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_POLICY_CACHE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ |
6 #define CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ | 6 #define CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/chromeos/login/signed_settings.h" | 10 #include "chrome/browser/chromeos/login/signed_settings.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const enterprise_management::ChromeDeviceSettingsProto& policy, | 91 const enterprise_management::ChromeDeviceSettingsProto& policy, |
92 PolicyMap* policies, | 92 PolicyMap* policies, |
93 EnterpriseInstallAttributes* install_attributes); | 93 EnterpriseInstallAttributes* install_attributes); |
94 static void DecodeNetworkPolicies( | 94 static void DecodeNetworkPolicies( |
95 const enterprise_management::ChromeDeviceSettingsProto& policy, | 95 const enterprise_management::ChromeDeviceSettingsProto& policy, |
96 PolicyMap* policies, | 96 PolicyMap* policies, |
97 EnterpriseInstallAttributes* install_attributes); | 97 EnterpriseInstallAttributes* install_attributes); |
98 static void DecodeReportingPolicies( | 98 static void DecodeReportingPolicies( |
99 const enterprise_management::ChromeDeviceSettingsProto& policy, | 99 const enterprise_management::ChromeDeviceSettingsProto& policy, |
100 PolicyMap* policies); | 100 PolicyMap* policies); |
| 101 static void DecodeAutoUpdatePolicies( |
| 102 const enterprise_management::ChromeDeviceSettingsProto& policy, |
| 103 PolicyMap* policies); |
101 static void DecodeGenericPolicies( | 104 static void DecodeGenericPolicies( |
102 const enterprise_management::ChromeDeviceSettingsProto& policy, | 105 const enterprise_management::ChromeDeviceSettingsProto& policy, |
103 PolicyMap* policies); | 106 PolicyMap* policies); |
104 | 107 |
105 CloudPolicyDataStore* data_store_; | 108 CloudPolicyDataStore* data_store_; |
106 EnterpriseInstallAttributes* install_attributes_; | 109 EnterpriseInstallAttributes* install_attributes_; |
107 | 110 |
108 chromeos::SignedSettingsHelper* signed_settings_helper_; | 111 chromeos::SignedSettingsHelper* signed_settings_helper_; |
109 | 112 |
110 base::WeakPtrFactory<DevicePolicyCache> weak_ptr_factory_; | 113 base::WeakPtrFactory<DevicePolicyCache> weak_ptr_factory_; |
111 | 114 |
112 bool policy_fetch_pending_; | 115 bool policy_fetch_pending_; |
113 | 116 |
114 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache); | 117 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache); |
115 }; | 118 }; |
116 | 119 |
117 } // namespace policy | 120 } // namespace policy |
118 | 121 |
119 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ | 122 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ |
OLD | NEW |