| 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 23 matching lines...) Expand all Loading... |
| 34 class OWNERSHIP_EXPORT OwnerSettingsService : public KeyedService { | 34 class OWNERSHIP_EXPORT OwnerSettingsService : public KeyedService { |
| 35 public: | 35 public: |
| 36 class Observer { | 36 class Observer { |
| 37 public: | 37 public: |
| 38 virtual ~Observer() {} | 38 virtual ~Observer() {} |
| 39 | 39 |
| 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 |
| 45 // not signed and stored. | 45 // policy is not signed and stored yet. |
| 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 OnTentativeChangesInPolicy( |
| 51 const enterprise_management::PolicyData& policy_data) {} | 51 const enterprise_management::PolicyData& policy_data) {} |
| 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)> |
| (...skipping 76 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 |