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

Side by Side Diff: components/content_settings/core/browser/content_settings_utils.h

Issue 1156983002: Remove unused "Website Settings" view of content settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_UTILS_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_UTILS_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_UTILS_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 namespace content_settings { 24 namespace content_settings {
25 25
26 class ProviderInterface; 26 class ProviderInterface;
27 class RuleIterator; 27 class RuleIterator;
28 28
29 typedef std::pair<ContentSettingsPattern, ContentSettingsPattern> PatternPair; 29 typedef std::pair<ContentSettingsPattern, ContentSettingsPattern> PatternPair;
30 30
31 std::string GetTypeName(ContentSettingsType type); 31 std::string GetTypeName(ContentSettingsType type);
32 32
33 bool GetTypeFromName(const std::string& name,
34 ContentSettingsType* return_setting) WARN_UNUSED_RESULT;
35
36 std::string ContentSettingToString(ContentSetting setting); 33 std::string ContentSettingToString(ContentSetting setting);
37 34
38 ContentSetting ContentSettingFromString(const std::string& name); 35 ContentSetting ContentSettingFromString(const std::string& name);
39 36
40 // Converts |Value| to |ContentSetting|. 37 // Converts |Value| to |ContentSetting|.
41 ContentSetting ValueToContentSetting(const base::Value* value); 38 ContentSetting ValueToContentSetting(const base::Value* value);
42 39
43 // Converts a |Value| to a |ContentSetting|. Returns true if |value| encodes 40 // Converts a |Value| to a |ContentSetting|. Returns true if |value| encodes
44 // a valid content setting, false otherwise. Note that |CONTENT_SETTING_DEFAULT| 41 // a valid content setting, false otherwise. Note that |CONTENT_SETTING_DEFAULT|
45 // is encoded as a NULL value, so it is not allowed as an integer value. 42 // is encoded as a NULL value, so it is not allowed as an integer value.
(...skipping 29 matching lines...) Expand all
75 ContentSettingsPattern* secondary_pattern); 72 ContentSettingsPattern* secondary_pattern);
76 73
77 // Populates |rules| with content setting rules for content types that are 74 // Populates |rules| with content setting rules for content types that are
78 // handled by the renderer. 75 // handled by the renderer.
79 void GetRendererContentSettingRules(const HostContentSettingsMap* map, 76 void GetRendererContentSettingRules(const HostContentSettingsMap* map,
80 RendererContentSettingRules* rules); 77 RendererContentSettingRules* rules);
81 78
82 } // namespace content_settings 79 } // namespace content_settings
83 80
84 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_UTILS_H_ 81 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | components/content_settings/core/browser/content_settings_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698