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

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

Issue 2552883009: [MD settings] include source of policy for content settings (Closed)
Patch Set: account for unset source 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
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_UI_WEBUI_SITE_SETTINGS_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // will be returned. 81 // will be returned.
82 void GetExceptionsFromHostContentSettingsMap( 82 void GetExceptionsFromHostContentSettingsMap(
83 const HostContentSettingsMap* map, 83 const HostContentSettingsMap* map,
84 ContentSettingsType type, 84 ContentSettingsType type,
85 const extensions::ExtensionRegistry* extension_registry, 85 const extensions::ExtensionRegistry* extension_registry,
86 content::WebUI* web_ui, 86 content::WebUI* web_ui,
87 bool incognito, 87 bool incognito,
88 const std::string* filter, 88 const std::string* filter,
89 base::ListValue* exceptions); 89 base::ListValue* exceptions);
90 90
91 // Fills in object saying what the current settings is for the category (such as
92 // enabled or blocked) and the source of that setting (such preference, policy,
93 // or extension).
94 void GetContentCategorySetting(
95 const HostContentSettingsMap* map,
96 ContentSettingsType content_type,
97 base::DictionaryValue* object);
98
91 // Returns exceptions constructed from the policy-set allowed URLs 99 // Returns exceptions constructed from the policy-set allowed URLs
92 // for the content settings |type| mic or camera. 100 // for the content settings |type| mic or camera.
93 void GetPolicyAllowedUrls( 101 void GetPolicyAllowedUrls(
94 ContentSettingsType type, 102 ContentSettingsType type,
95 std::vector<std::unique_ptr<base::DictionaryValue>>* exceptions, 103 std::vector<std::unique_ptr<base::DictionaryValue>>* exceptions,
96 const extensions::ExtensionRegistry* extension_registry, 104 const extensions::ExtensionRegistry* extension_registry,
97 content::WebUI* web_ui, 105 content::WebUI* web_ui,
98 bool incognito); 106 bool incognito);
99 107
100 // This struct facilitates lookup of a chooser context factory function by name 108 // This struct facilitates lookup of a chooser context factory function by name
(...skipping 23 matching lines...) Expand all
124 // Fills in |exceptions| with Values for the given |chooser_type| from map. 132 // Fills in |exceptions| with Values for the given |chooser_type| from map.
125 void GetChooserExceptionsFromProfile( 133 void GetChooserExceptionsFromProfile(
126 Profile* profile, 134 Profile* profile,
127 bool incognito, 135 bool incognito,
128 const ChooserTypeNameEntry& chooser_type, 136 const ChooserTypeNameEntry& chooser_type,
129 base::ListValue* exceptions); 137 base::ListValue* exceptions);
130 138
131 } // namespace site_settings 139 } // namespace site_settings
132 140
133 #endif // CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ 141 #endif // CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc ('k') | chrome/browser/ui/webui/site_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698