| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ | 5 #ifndef COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ |
| 6 #define COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ | 6 #define COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Called when signed policy was stored, or when an error happed during | 40 // Called when signed policy was stored, or when an error happed during |
| 41 // policy storage.. | 41 // policy storage.. |
| 42 virtual void OnSignedPolicyStored(bool success) {} | 42 virtual void OnSignedPolicyStored(bool success) {} |
| 43 | 43 |
| 44 // Called when tentative changes were made to policy, but the policy still | 44 // Called when tentative changes were made to policy, but the policy still |
| 45 // not signed and stored. | 45 // not signed and stored. |
| 46 // | 46 // |
| 47 // TODO (ygorshenin@, crbug.com/230018): get rid of the method | 47 // TODO (ygorshenin@, crbug.com/230018): get rid of the method |
| 48 // since it creates DeviceSettingsService's dependency on | 48 // since it creates DeviceSettingsService's dependency on |
| 49 // OwnerSettingsService. | 49 // OwnerSettingsService. |
| 50 virtual void OnTentativeChangesInPolicy( | 50 virtual void OnTentativeChangeInSettings(const std::string& setting, |
| 51 const enterprise_management::PolicyData& policy_data) {} | 51 const base::Value& value) {} |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 typedef base::Callback<void( | 54 typedef base::Callback<void( |
| 55 scoped_ptr<enterprise_management::PolicyFetchResponse> policy_response)> | 55 scoped_ptr<enterprise_management::PolicyFetchResponse> policy_response)> |
| 56 AssembleAndSignPolicyAsyncCallback; | 56 AssembleAndSignPolicyAsyncCallback; |
| 57 | 57 |
| 58 typedef base::Callback<void(bool is_owner)> IsOwnerCallback; | 58 typedef base::Callback<void(bool is_owner)> IsOwnerCallback; |
| 59 | 59 |
| 60 explicit OwnerSettingsService( | 60 explicit OwnerSettingsService( |
| 61 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); | 61 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 private: | 133 private: |
| 134 base::WeakPtrFactory<OwnerSettingsService> weak_factory_; | 134 base::WeakPtrFactory<OwnerSettingsService> weak_factory_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService); | 136 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace ownership | 139 } // namespace ownership |
| 140 | 140 |
| 141 #endif // COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ | 141 #endif // COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ |
| OLD | NEW |