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

Side by Side Diff: chrome/browser/ui/webui/policy_ui.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 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 | Annotate | Revision Log
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 #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/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/chrome_notification_types.h" 18 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/policy/browser_policy_connector.h" 19 #include "chrome/browser/policy/browser_policy_connector.h"
20 #include "chrome/browser/policy/cloud/cloud_policy_client.h" 20 #include "chrome/browser/policy/cloud/cloud_policy_client.h"
21 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" 21 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
22 #include "chrome/browser/policy/cloud/cloud_policy_core.h" 22 #include "chrome/browser/policy/cloud/cloud_policy_core.h"
23 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" 23 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h"
24 #include "chrome/browser/policy/cloud/cloud_policy_store.h" 24 #include "chrome/browser/policy/cloud/cloud_policy_store.h"
25 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" 25 #include "chrome/browser/policy/cloud/cloud_policy_validator.h"
26 #include "chrome/browser/policy/cloud/message_util.h" 26 #include "chrome/browser/policy/cloud/message_util.h"
27 #include "chrome/browser/policy/configuration_policy_handler_list.h" 27 #include "chrome/browser/policy/configuration_policy_handler_list.h"
28 #include "chrome/browser/policy/policy_error_map.h" 28 #include "chrome/browser/policy/policy_error_map.h"
29 #include "chrome/browser/policy/policy_map.h"
30 #include "chrome/browser/policy/policy_service.h" 29 #include "chrome/browser/policy/policy_service.h"
31 #include "chrome/browser/policy/policy_types.h"
32 #include "chrome/browser/policy/profile_policy_connector.h" 30 #include "chrome/browser/policy/profile_policy_connector.h"
33 #include "chrome/browser/policy/profile_policy_connector_factory.h" 31 #include "chrome/browser/policy/profile_policy_connector_factory.h"
34 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 32 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
35 #include "chrome/browser/policy/schema_map.h" 33 #include "chrome/browser/policy/schema_map.h"
36 #include "chrome/browser/policy/schema_registry.h" 34 #include "chrome/browser/policy/schema_registry.h"
37 #include "chrome/browser/policy/schema_registry_service.h" 35 #include "chrome/browser/policy/schema_registry_service.h"
38 #include "chrome/browser/policy/schema_registry_service_factory.h" 36 #include "chrome/browser/policy/schema_registry_service_factory.h"
39 #include "chrome/browser/profiles/profile.h" 37 #include "chrome/browser/profiles/profile.h"
40 #include "chrome/common/url_constants.h" 38 #include "chrome/common/url_constants.h"
39 #include "components/policy/core/common/policy_map.h"
41 #include "components/policy/core/common/policy_namespace.h" 40 #include "components/policy/core/common/policy_namespace.h"
41 #include "components/policy/core/common/policy_types.h"
42 #include "components/policy/core/common/schema.h" 42 #include "components/policy/core/common/schema.h"
43 #include "content/public/browser/notification_observer.h" 43 #include "content/public/browser/notification_observer.h"
44 #include "content/public/browser/notification_registrar.h" 44 #include "content/public/browser/notification_registrar.h"
45 #include "content/public/browser/notification_service.h" 45 #include "content/public/browser/notification_service.h"
46 #include "content/public/browser/web_ui.h" 46 #include "content/public/browser/web_ui.h"
47 #include "content/public/browser/web_ui_data_source.h" 47 #include "content/public/browser/web_ui_data_source.h"
48 #include "content/public/browser/web_ui_message_handler.h" 48 #include "content/public/browser/web_ui_message_handler.h"
49 #include "google_apis/gaia/gaia_auth_util.h" 49 #include "google_apis/gaia/gaia_auth_util.h"
50 #include "grit/browser_resources.h" 50 #include "grit/browser_resources.h"
51 #include "grit/generated_resources.h" 51 #include "grit/generated_resources.h"
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 } 725 }
726 726
727 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { 727 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) {
728 web_ui->AddMessageHandler(new PolicyUIHandler); 728 web_ui->AddMessageHandler(new PolicyUIHandler);
729 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), 729 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui),
730 CreatePolicyUIHTMLSource()); 730 CreatePolicyUIHTMLSource());
731 } 731 }
732 732
733 PolicyUI::~PolicyUI() { 733 PolicyUI::~PolicyUI() {
734 } 734 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698