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_CLOUD_POLICY_STORE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ |
6 #define CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 public: | 29 public: |
30 DeviceCloudPolicyStoreChromeOS( | 30 DeviceCloudPolicyStoreChromeOS( |
31 chromeos::DeviceSettingsService* device_settings_service, | 31 chromeos::DeviceSettingsService* device_settings_service, |
32 EnterpriseInstallAttributes* install_attributes); | 32 EnterpriseInstallAttributes* install_attributes); |
33 virtual ~DeviceCloudPolicyStoreChromeOS(); | 33 virtual ~DeviceCloudPolicyStoreChromeOS(); |
34 | 34 |
35 // CloudPolicyStore: | 35 // CloudPolicyStore: |
36 virtual void Store( | 36 virtual void Store( |
37 const enterprise_management::PolicyFetchResponse& policy) OVERRIDE; | 37 const enterprise_management::PolicyFetchResponse& policy) OVERRIDE; |
38 virtual void Load() OVERRIDE; | 38 virtual void Load() OVERRIDE; |
39 virtual void RemoveStoredPolicy() OVERRIDE; | |
40 | 39 |
41 // Installs initial policy. This is different from Store() in that it skips | 40 // Installs initial policy. This is different from Store() in that it skips |
42 // the signature validation step against already-installed policy. The checks | 41 // the signature validation step against already-installed policy. The checks |
43 // against installation-time attributes are performed nevertheless. The result | 42 // against installation-time attributes are performed nevertheless. The result |
44 // of the operation is reported through the OnStoreLoaded() or OnStoreError() | 43 // of the operation is reported through the OnStoreLoaded() or OnStoreError() |
45 // observer callbacks. | 44 // observer callbacks. |
46 void InstallInitialPolicy( | 45 void InstallInitialPolicy( |
47 const enterprise_management::PolicyFetchResponse& policy); | 46 const enterprise_management::PolicyFetchResponse& policy); |
48 | 47 |
49 // chromeos::DeviceSettingsService::Observer: | 48 // chromeos::DeviceSettingsService::Observer: |
(...skipping 20 matching lines...) Expand all Loading... |
70 EnterpriseInstallAttributes* install_attributes_; | 69 EnterpriseInstallAttributes* install_attributes_; |
71 | 70 |
72 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; | 71 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; |
73 | 72 |
74 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); | 73 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); |
75 }; | 74 }; |
76 | 75 |
77 } // namespace policy | 76 } // namespace policy |
78 | 77 |
79 #endif // CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ | 78 #endif // CHROME_BROWSER_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ |
OLD | NEW |