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 #include "chrome/browser/ui/webui/policy_ui.h" | 5 #include "chrome/browser/ui/webui/policy_ui.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/chrome_notification_types.h" | 19 #include "chrome/browser/chrome_notification_types.h" |
20 #include "chrome/browser/policy/browser_policy_connector.h" | 20 #include "chrome/browser/policy/browser_policy_connector.h" |
21 #include "chrome/browser/policy/cloud/cloud_policy_client.h" | |
22 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | |
23 #include "chrome/browser/policy/cloud/cloud_policy_core.h" | |
24 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" | |
25 #include "chrome/browser/policy/cloud/cloud_policy_store.h" | |
26 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" | |
27 #include "chrome/browser/policy/cloud/message_util.h" | |
28 #include "chrome/browser/policy/configuration_policy_handler_list.h" | |
29 #include "chrome/browser/policy/policy_service.h" | |
30 #include "chrome/browser/policy/profile_policy_connector.h" | 21 #include "chrome/browser/policy/profile_policy_connector.h" |
31 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 22 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
32 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" | 23 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
33 #include "chrome/browser/policy/schema_registry_service.h" | 24 #include "chrome/browser/policy/schema_registry_service.h" |
34 #include "chrome/browser/policy/schema_registry_service_factory.h" | 25 #include "chrome/browser/policy/schema_registry_service_factory.h" |
35 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
36 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
| 28 #include "components/policy/core/browser/cloud/message_util.h" |
| 29 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
37 #include "components/policy/core/browser/policy_error_map.h" | 30 #include "components/policy/core/browser/policy_error_map.h" |
| 31 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
| 32 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 33 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 34 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
| 35 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 36 #include "components/policy/core/common/cloud/cloud_policy_validator.h" |
38 #include "components/policy/core/common/policy_map.h" | 37 #include "components/policy/core/common/policy_map.h" |
39 #include "components/policy/core/common/policy_namespace.h" | 38 #include "components/policy/core/common/policy_namespace.h" |
| 39 #include "components/policy/core/common/policy_service.h" |
40 #include "components/policy/core/common/policy_types.h" | 40 #include "components/policy/core/common/policy_types.h" |
41 #include "components/policy/core/common/schema.h" | 41 #include "components/policy/core/common/schema.h" |
42 #include "components/policy/core/common/schema_map.h" | 42 #include "components/policy/core/common/schema_map.h" |
43 #include "components/policy/core/common/schema_registry.h" | 43 #include "components/policy/core/common/schema_registry.h" |
44 #include "content/public/browser/notification_observer.h" | 44 #include "content/public/browser/notification_observer.h" |
45 #include "content/public/browser/notification_registrar.h" | 45 #include "content/public/browser/notification_registrar.h" |
46 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
47 #include "content/public/browser/web_ui.h" | 47 #include "content/public/browser/web_ui.h" |
48 #include "content/public/browser/web_ui_data_source.h" | 48 #include "content/public/browser/web_ui_data_source.h" |
49 #include "content/public/browser/web_ui_message_handler.h" | 49 #include "content/public/browser/web_ui_message_handler.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 } | 756 } |
757 | 757 |
758 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 758 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
759 web_ui->AddMessageHandler(new PolicyUIHandler); | 759 web_ui->AddMessageHandler(new PolicyUIHandler); |
760 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), | 760 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), |
761 CreatePolicyUIHTMLSource()); | 761 CreatePolicyUIHTMLSource()); |
762 } | 762 } |
763 | 763 |
764 PolicyUI::~PolicyUI() { | 764 PolicyUI::~PolicyUI() { |
765 } | 765 } |
OLD | NEW |