| 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_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Gets the owner key and triggers policy validation. | 64 // Gets the owner key and triggers policy validation. |
| 65 void CheckKeyAndValidate( | 65 void CheckKeyAndValidate( |
| 66 scoped_ptr<enterprise_management::PolicyFetchResponse> policy, | 66 scoped_ptr<enterprise_management::PolicyFetchResponse> policy, |
| 67 const UserCloudPolicyValidator::CompletionCallback& callback); | 67 const UserCloudPolicyValidator::CompletionCallback& callback); |
| 68 | 68 |
| 69 // Triggers policy validation. | 69 // Triggers policy validation. |
| 70 void Validate( | 70 void Validate( |
| 71 scoped_ptr<enterprise_management::PolicyFetchResponse> policy, | 71 scoped_ptr<enterprise_management::PolicyFetchResponse> policy, |
| 72 const UserCloudPolicyValidator::CompletionCallback& callback, | 72 const UserCloudPolicyValidator::CompletionCallback& callback, |
| 73 chromeos::DeviceSettingsService::OwnershipStatus ownership_status, | 73 chromeos::DeviceSettingsService::OwnershipStatus ownership_status); |
| 74 bool is_owner); | |
| 75 | 74 |
| 76 const std::string account_id_; | 75 const std::string account_id_; |
| 77 chromeos::SessionManagerClient* session_manager_client_; | 76 chromeos::SessionManagerClient* session_manager_client_; |
| 78 chromeos::DeviceSettingsService* device_settings_service_; | 77 chromeos::DeviceSettingsService* device_settings_service_; |
| 79 | 78 |
| 80 base::WeakPtrFactory<DeviceLocalAccountPolicyStore> weak_factory_; | 79 base::WeakPtrFactory<DeviceLocalAccountPolicyStore> weak_factory_; |
| 81 | 80 |
| 82 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyStore); | 81 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyStore); |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 } // namespace policy | 84 } // namespace policy |
| 86 | 85 |
| 87 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ | 86 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_STORE_H_ |
| OLD | NEW |