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

Side by Side Diff: chrome/browser/chromeos/policy/device_active_directory_policy_manager.h

Issue 2531793002: Update AD status on chrome://policy page automatically (Closed)
Patch Set: Created 4 years 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 | « no previous file | chrome/browser/ui/webui/policy_ui_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_ACTIVE_DIRECTORY_POLICY_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_ACTIVE_DIRECTORY_POLICY_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_ACTIVE_DIRECTORY_POLICY_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_ACTIVE_DIRECTORY_POLICY_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 // ConfigurationPolicyProvider: 27 // ConfigurationPolicyProvider:
28 void Init(SchemaRegistry* registry) override; 28 void Init(SchemaRegistry* registry) override;
29 void Shutdown() override; 29 void Shutdown() override;
30 bool IsInitializationComplete(PolicyDomain domain) const override; 30 bool IsInitializationComplete(PolicyDomain domain) const override;
31 void RefreshPolicies() override; 31 void RefreshPolicies() override;
32 32
33 // CloudPolicyStore::Observer: 33 // CloudPolicyStore::Observer:
34 void OnStoreLoaded(CloudPolicyStore* cloud_policy_store) override; 34 void OnStoreLoaded(CloudPolicyStore* cloud_policy_store) override;
35 void OnStoreError(CloudPolicyStore* cloud_policy_store) override; 35 void OnStoreError(CloudPolicyStore* cloud_policy_store) override;
36 36
37 const CloudPolicyStore* store() const { return store_.get(); } 37 const CloudPolicyStore* store() const { return store_.get(); }
Bernhard Bauer 2016/11/25 15:17:20 Do you use this anywhere else? Otherwise I'd just
Thiemo Nagel 2016/11/28 14:49:40 Imho it would be better style to separate mutable
38 CloudPolicyStore* mutable_store() const { return store_.get(); }
38 39
39 private: 40 private:
40 // Publishes the policy that's currently cached in the store. 41 // Publishes the policy that's currently cached in the store.
41 void PublishPolicy(); 42 void PublishPolicy();
42 43
43 // Callback from authpolicyd. 44 // Callback from authpolicyd.
44 void OnPolicyRefreshed(bool success); 45 void OnPolicyRefreshed(bool success);
45 46
46 std::unique_ptr<CloudPolicyStore> store_; 47 std::unique_ptr<CloudPolicyStore> store_;
47 48
48 // Must be last member. 49 // Must be last member.
49 base::WeakPtrFactory<DeviceActiveDirectoryPolicyManager> weak_ptr_factory_; 50 base::WeakPtrFactory<DeviceActiveDirectoryPolicyManager> weak_ptr_factory_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(DeviceActiveDirectoryPolicyManager); 52 DISALLOW_COPY_AND_ASSIGN(DeviceActiveDirectoryPolicyManager);
52 }; 53 };
53 54
54 } // namespace policy 55 } // namespace policy
55 56
56 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_ACTIVE_DIRECTORY_POLICY_MANAGER _H_ 57 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_ACTIVE_DIRECTORY_POLICY_MANAGER _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/policy_ui_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698