Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Side by Side Diff: components/ownership/owner_settings_service.h

Issue 723163002: Added key-value storage for pending changes to OwnerSettingsServiceChromeOS. This CL is an alternat… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2214
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698