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_LOCAL_ACCOUNT_POLICY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_ |
6 #define CHROME_BROWSER_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
13 #include "chrome/browser/policy/configuration_policy_provider.h" | 14 #include "chrome/browser/policy/configuration_policy_provider.h" |
14 #include "chrome/browser/policy/device_local_account_policy_service.h" | |
15 | 15 |
16 namespace policy { | 16 namespace policy { |
17 | 17 |
18 // Policy provider for a device-local account. Pulls policy from | 18 // Policy provider for a device-local account. Pulls policy from |
19 // DeviceLocalAccountPolicyService. Note that this implementation keeps | 19 // DeviceLocalAccountPolicyService. Note that this implementation keeps |
20 // functioning when the device-local account disappears from | 20 // functioning when the device-local account disappears from |
21 // DeviceLocalAccountPolicyService. The current policy will be kept in that case | 21 // DeviceLocalAccountPolicyService. The current policy will be kept in that case |
22 // and RefreshPolicies becomes a no-op. | 22 // and RefreshPolicies becomes a no-op. |
23 class DeviceLocalAccountPolicyProvider | 23 class DeviceLocalAccountPolicyProvider |
24 : public ConfigurationPolicyProvider, | 24 : public ConfigurationPolicyProvider, |
(...skipping 29 matching lines...) Expand all Loading... |
54 bool store_initialized_; | 54 bool store_initialized_; |
55 bool waiting_for_policy_refresh_; | 55 bool waiting_for_policy_refresh_; |
56 | 56 |
57 base::WeakPtrFactory<DeviceLocalAccountPolicyProvider> weak_factory_; | 57 base::WeakPtrFactory<DeviceLocalAccountPolicyProvider> weak_factory_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyProvider); | 59 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyProvider); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace policy | 62 } // namespace policy |
63 | 63 |
64 #endif // CHROME_BROWSER_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H
_ |
OLD | NEW |