OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTENSION_TRACKER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTENSION_TRACKER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "components/policy/core/common/cloud/cloud_policy_store.h" | |
10 | |
11 namespace policy { | |
12 | |
13 struct DeviceLocalAccount; | |
14 class SchemaRegistry; | |
15 | |
16 // Helper class that keeps all the extensions that a device local account uses | |
bartfab (slow)
2014/06/20 17:03:46
Nit: s/device local/device-local/
Joao da Silva
2014/06/20 22:28:19
Done.
| |
17 // registered in a SchemaRegistry. | |
18 class DeviceLocalAccountExtensionTracker : public CloudPolicyStore::Observer { | |
19 public: | |
20 DeviceLocalAccountExtensionTracker( | |
21 const DeviceLocalAccount& account, | |
22 CloudPolicyStore* store, | |
23 SchemaRegistry* schema_registry); | |
24 | |
25 ~DeviceLocalAccountExtensionTracker(); | |
bartfab (slow)
2014/06/20 17:03:46
Nit: virtual.
Joao da Silva
2014/06/20 22:28:19
Done.
| |
26 | |
27 // CloudPolicyStore::Observer: | |
28 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; | |
bartfab (slow)
2014/06/20 17:03:46
Nit: #include "base/compiler_specific.h"
Joao da Silva
2014/06/20 22:28:19
Done.
| |
29 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; | |
30 | |
31 private: | |
32 void UpdateFromStore(); | |
33 | |
34 CloudPolicyStore* store_; | |
35 SchemaRegistry* schema_registry_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountExtensionTracker); | |
38 }; | |
39 | |
40 } // namespace policy | |
41 | |
42 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_EXTENSION_TRACKER _H_ | |
OLD | NEW |