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

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

Issue 1825173003: [Policy Experimental] Add "recommended" policies for URL exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 4 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // set by policy, extension, the user or by the custodian of a supervised user. 69 // set by policy, extension, the user or by the custodian of a supervised user.
70 // Certain (internal) schemes are whilelisted. For whilelisted schemes the 70 // Certain (internal) schemes are whilelisted. For whilelisted schemes the
71 // source is |SETTING_SOURCE_WHITELIST|. 71 // source is |SETTING_SOURCE_WHITELIST|.
72 enum SettingSource { 72 enum SettingSource {
73 SETTING_SOURCE_NONE, 73 SETTING_SOURCE_NONE,
74 SETTING_SOURCE_POLICY, 74 SETTING_SOURCE_POLICY,
75 SETTING_SOURCE_EXTENSION, 75 SETTING_SOURCE_EXTENSION,
76 SETTING_SOURCE_USER, 76 SETTING_SOURCE_USER,
77 SETTING_SOURCE_WHITELIST, 77 SETTING_SOURCE_WHITELIST,
78 SETTING_SOURCE_SUPERVISED, 78 SETTING_SOURCE_SUPERVISED,
79 SETTING_SOURCE_RECOMMENDED_POLICY,
79 }; 80 };
80 81
81 // |SettingInfo| provides meta data for content setting values. |source| 82 // |SettingInfo| provides meta data for content setting values. |source|
82 // contains the source of a value. |primary_pattern| and |secondary_pattern| 83 // contains the source of a value. |primary_pattern| and |secondary_pattern|
83 // contains the patterns of the appling rule. 84 // contains the patterns of the appling rule.
84 struct SettingInfo { 85 struct SettingInfo {
85 SettingSource source; 86 SettingSource source;
86 ContentSettingsPattern primary_pattern; 87 ContentSettingsPattern primary_pattern;
87 ContentSettingsPattern secondary_pattern; 88 ContentSettingsPattern secondary_pattern;
88 }; 89 };
89 90
90 } // namespace content_settings 91 } // namespace content_settings
91 92
92 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_H_ 93 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698