OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 15 matching lines...) Expand all Loading... |
26 public chromeos::SignedSettingsHelper::Callback { | 26 public chromeos::SignedSettingsHelper::Callback { |
27 public: | 27 public: |
28 DevicePolicyCache(CloudPolicyDataStore* data_store, | 28 DevicePolicyCache(CloudPolicyDataStore* data_store, |
29 EnterpriseInstallAttributes* install_attributes); | 29 EnterpriseInstallAttributes* install_attributes); |
30 virtual ~DevicePolicyCache(); | 30 virtual ~DevicePolicyCache(); |
31 | 31 |
32 // CloudPolicyCacheBase implementation: | 32 // CloudPolicyCacheBase implementation: |
33 virtual void Load() OVERRIDE; | 33 virtual void Load() OVERRIDE; |
34 virtual void SetPolicy(const em::PolicyFetchResponse& policy) OVERRIDE; | 34 virtual void SetPolicy(const em::PolicyFetchResponse& policy) OVERRIDE; |
35 virtual void SetUnmanaged() OVERRIDE; | 35 virtual void SetUnmanaged() OVERRIDE; |
| 36 virtual void SetFetchingDone() OVERRIDE; |
36 | 37 |
37 // SignedSettingsHelper::Callback implementation: | 38 // SignedSettingsHelper::Callback implementation: |
38 virtual void OnRetrievePolicyCompleted( | 39 virtual void OnRetrievePolicyCompleted( |
39 chromeos::SignedSettings::ReturnCode code, | 40 chromeos::SignedSettings::ReturnCode code, |
40 const em::PolicyFetchResponse& policy) OVERRIDE; | 41 const em::PolicyFetchResponse& policy) OVERRIDE; |
41 | 42 |
42 private: | 43 private: |
43 friend class DevicePolicyCacheTest; | 44 friend class DevicePolicyCacheTest; |
44 friend class DevicePolicyCacheTestHelper; | 45 friend class DevicePolicyCacheTestHelper; |
45 | 46 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 chromeos::SignedSettingsHelper* signed_settings_helper_; | 78 chromeos::SignedSettingsHelper* signed_settings_helper_; |
78 | 79 |
79 base::WeakPtrFactory<DevicePolicyCache> weak_ptr_factory_; | 80 base::WeakPtrFactory<DevicePolicyCache> weak_ptr_factory_; |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache); | 82 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace policy | 85 } // namespace policy |
85 | 86 |
86 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ | 87 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ |
OLD | NEW |