| 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; | |
| 37 | 36 |
| 38 // SignedSettingsHelper::Callback implementation: | 37 // SignedSettingsHelper::Callback implementation: |
| 39 virtual void OnRetrievePolicyCompleted( | 38 virtual void OnRetrievePolicyCompleted( |
| 40 chromeos::SignedSettings::ReturnCode code, | 39 chromeos::SignedSettings::ReturnCode code, |
| 41 const em::PolicyFetchResponse& policy) OVERRIDE; | 40 const em::PolicyFetchResponse& policy) OVERRIDE; |
| 42 | 41 |
| 43 private: | 42 private: |
| 44 friend class DevicePolicyCacheTest; | 43 friend class DevicePolicyCacheTest; |
| 45 friend class DevicePolicyCacheTestHelper; | 44 friend class DevicePolicyCacheTestHelper; |
| 46 | 45 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 chromeos::SignedSettingsHelper* signed_settings_helper_; | 77 chromeos::SignedSettingsHelper* signed_settings_helper_; |
| 79 | 78 |
| 80 base::WeakPtrFactory<DevicePolicyCache> weak_ptr_factory_; | 79 base::WeakPtrFactory<DevicePolicyCache> weak_ptr_factory_; |
| 81 | 80 |
| 82 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache); | 81 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache); |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 } // namespace policy | 84 } // namespace policy |
| 86 | 85 |
| 87 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ | 86 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ |
| OLD | NEW |