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

Side by Side Diff: components/content_settings/core/common/content_settings.h

Issue 1034143002: Content settings clean-up: Clarify resource identifier & get rid of NO_RESOURCE_IDENTIFIER. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nit. Created 5 years, 8 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
« no previous file with comments | « components/content_settings/core/browser/content_settings_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_CONTENT_SETTINGS_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 struct RendererContentSettingRules { 56 struct RendererContentSettingRules {
57 RendererContentSettingRules(); 57 RendererContentSettingRules();
58 ~RendererContentSettingRules(); 58 ~RendererContentSettingRules();
59 ContentSettingsForOneType image_rules; 59 ContentSettingsForOneType image_rules;
60 ContentSettingsForOneType script_rules; 60 ContentSettingsForOneType script_rules;
61 }; 61 };
62 62
63 namespace content_settings { 63 namespace content_settings {
64 64
65 typedef std::string ResourceIdentifier;
66
65 // Enum containing the various source for content settings. Settings can be 67 // Enum containing the various source for content settings. Settings can be
66 // set by policy, extension, the user or by the custodian of a supervised user. 68 // set by policy, extension, the user or by the custodian of a supervised user.
67 // Certain (internal) schemes are whilelisted. For whilelisted schemes the 69 // Certain (internal) schemes are whilelisted. For whilelisted schemes the
68 // source is |SETTING_SOURCE_WHITELIST|. 70 // source is |SETTING_SOURCE_WHITELIST|.
69 enum SettingSource { 71 enum SettingSource {
70 SETTING_SOURCE_NONE, 72 SETTING_SOURCE_NONE,
71 SETTING_SOURCE_POLICY, 73 SETTING_SOURCE_POLICY,
72 SETTING_SOURCE_EXTENSION, 74 SETTING_SOURCE_EXTENSION,
73 SETTING_SOURCE_USER, 75 SETTING_SOURCE_USER,
74 SETTING_SOURCE_WHITELIST, 76 SETTING_SOURCE_WHITELIST,
75 SETTING_SOURCE_SUPERVISED, 77 SETTING_SOURCE_SUPERVISED,
76 }; 78 };
77 79
78 // |SettingInfo| provides meta data for content setting values. |source| 80 // |SettingInfo| provides meta data for content setting values. |source|
79 // contains the source of a value. |primary_pattern| and |secondary_pattern| 81 // contains the source of a value. |primary_pattern| and |secondary_pattern|
80 // contains the patterns of the appling rule. 82 // contains the patterns of the appling rule.
81 struct SettingInfo { 83 struct SettingInfo {
82 SettingSource source; 84 SettingSource source;
83 ContentSettingsPattern primary_pattern; 85 ContentSettingsPattern primary_pattern;
84 ContentSettingsPattern secondary_pattern; 86 ContentSettingsPattern secondary_pattern;
85 }; 87 };
86 88
87 } // namespace content_settings 89 } // namespace content_settings
88 90
89 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_H_ 91 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_H_
OLDNEW
« no previous file with comments | « components/content_settings/core/browser/content_settings_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698