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

Side by Side Diff: chrome/browser/ui/webui/policy_ui_handler.h

Issue 2486813002: Add DeviceADPolicyManager to provide AD policy. (Closed)
Patch Set: Address Bernhard's comments Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_WEBUI_POLICY_UI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_POLICY_UI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_POLICY_UI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_POLICY_UI_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 #if BUILDFLAG(ENABLE_EXTENSIONS) 25 #if BUILDFLAG(ENABLE_EXTENSIONS)
26 #include "extensions/browser/extension_registry_observer.h" 26 #include "extensions/browser/extension_registry_observer.h"
27 #endif 27 #endif
28 28
29 struct PolicyStringMap { 29 struct PolicyStringMap {
30 const char* key; 30 const char* key;
31 int string_id; 31 int string_id;
32 }; 32 };
33 33
34 class CloudPolicyStatusProvider; 34 class PolicyStatusProvider;
35 35
36 // The JavaScript message handler for the chrome://policy page. 36 // The JavaScript message handler for the chrome://policy page.
37 class PolicyUIHandler : public content::WebUIMessageHandler, 37 class PolicyUIHandler : public content::WebUIMessageHandler,
38 #if BUILDFLAG(ENABLE_EXTENSIONS) 38 #if BUILDFLAG(ENABLE_EXTENSIONS)
39 public extensions::ExtensionRegistryObserver, 39 public extensions::ExtensionRegistryObserver,
40 #endif 40 #endif
41 public policy::PolicyService::Observer, 41 public policy::PolicyService::Observer,
42 public policy::SchemaRegistry::Observer { 42 public policy::SchemaRegistry::Observer {
43 public: 43 public:
44 PolicyUIHandler(); 44 PolicyUIHandler();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 void OnRefreshPoliciesDone() const; 105 void OnRefreshPoliciesDone() const;
106 106
107 policy::PolicyService* GetPolicyService() const; 107 policy::PolicyService* GetPolicyService() const;
108 108
109 std::string device_domain_; 109 std::string device_domain_;
110 110
111 // Providers that supply status dictionaries for user and device policy, 111 // Providers that supply status dictionaries for user and device policy,
112 // respectively. These are created on initialization time as appropriate for 112 // respectively. These are created on initialization time as appropriate for
113 // the platform (Chrome OS / desktop) and type of policy that is in effect. 113 // the platform (Chrome OS / desktop) and type of policy that is in effect.
114 std::unique_ptr<CloudPolicyStatusProvider> user_status_provider_; 114 std::unique_ptr<PolicyStatusProvider> user_status_provider_;
115 std::unique_ptr<CloudPolicyStatusProvider> device_status_provider_; 115 std::unique_ptr<PolicyStatusProvider> device_status_provider_;
116 116
117 base::WeakPtrFactory<PolicyUIHandler> weak_factory_; 117 base::WeakPtrFactory<PolicyUIHandler> weak_factory_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(PolicyUIHandler); 119 DISALLOW_COPY_AND_ASSIGN(PolicyUIHandler);
120 }; 120 };
121 121
122 #endif // CHROME_BROWSER_UI_WEBUI_POLICY_UI_HANDLER_H_ 122 #endif // CHROME_BROWSER_UI_WEBUI_POLICY_UI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698