| OLD | NEW |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 static void AddCommonLocalizedStringsToSource( | 52 static void AddCommonLocalizedStringsToSource( |
| 53 content::WebUIDataSource* source); | 53 content::WebUIDataSource* source); |
| 54 | 54 |
| 55 // content::WebUIMessageHandler implementation. | 55 // content::WebUIMessageHandler implementation. |
| 56 void RegisterMessages() override; | 56 void RegisterMessages() override; |
| 57 | 57 |
| 58 #if BUILDFLAG(ENABLE_EXTENSIONS) | 58 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 59 // extensions::ExtensionRegistryObserver implementation. | 59 // extensions::ExtensionRegistryObserver implementation. |
| 60 void OnExtensionLoaded(content::BrowserContext* browser_context, | 60 void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 61 const extensions::Extension* extension) override; | 61 const extensions::Extension* extension) override; |
| 62 void OnExtensionUnloaded( | 62 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 63 content::BrowserContext* browser_context, | 63 const extensions::Extension* extension, |
| 64 const extensions::Extension* extension, | 64 extensions::UnloadedExtensionReason reason) override; |
| 65 extensions::UnloadedExtensionInfo::Reason reason) override; | |
| 66 #endif | 65 #endif |
| 67 | 66 |
| 68 // policy::PolicyService::Observer implementation. | 67 // policy::PolicyService::Observer implementation. |
| 69 void OnPolicyUpdated(const policy::PolicyNamespace& ns, | 68 void OnPolicyUpdated(const policy::PolicyNamespace& ns, |
| 70 const policy::PolicyMap& previous, | 69 const policy::PolicyMap& previous, |
| 71 const policy::PolicyMap& current) override; | 70 const policy::PolicyMap& current) override; |
| 72 | 71 |
| 73 // policy::SchemaRegistry::Observer implementation. | 72 // policy::SchemaRegistry::Observer implementation. |
| 74 void OnSchemaRegistryUpdated(bool has_new_schemas) override; | 73 void OnSchemaRegistryUpdated(bool has_new_schemas) override; |
| 75 | 74 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // the platform (Chrome OS / desktop) and type of policy that is in effect. | 112 // the platform (Chrome OS / desktop) and type of policy that is in effect. |
| 114 std::unique_ptr<PolicyStatusProvider> user_status_provider_; | 113 std::unique_ptr<PolicyStatusProvider> user_status_provider_; |
| 115 std::unique_ptr<PolicyStatusProvider> device_status_provider_; | 114 std::unique_ptr<PolicyStatusProvider> device_status_provider_; |
| 116 | 115 |
| 117 base::WeakPtrFactory<PolicyUIHandler> weak_factory_; | 116 base::WeakPtrFactory<PolicyUIHandler> weak_factory_; |
| 118 | 117 |
| 119 DISALLOW_COPY_AND_ASSIGN(PolicyUIHandler); | 118 DISALLOW_COPY_AND_ASSIGN(PolicyUIHandler); |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 #endif // CHROME_BROWSER_UI_WEBUI_POLICY_UI_HANDLER_H_ | 121 #endif // CHROME_BROWSER_UI_WEBUI_POLICY_UI_HANDLER_H_ |
| OLD | NEW |