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

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

Issue 1906533002: Add 'autoplay' content settings and expose it to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool incognito; 52 bool incognito;
53 }; 53 };
54 54
55 typedef std::vector<ContentSettingPatternSource> ContentSettingsForOneType; 55 typedef std::vector<ContentSettingPatternSource> ContentSettingsForOneType;
56 56
57 struct RendererContentSettingRules { 57 struct RendererContentSettingRules {
58 RendererContentSettingRules(); 58 RendererContentSettingRules();
59 ~RendererContentSettingRules(); 59 ~RendererContentSettingRules();
60 ContentSettingsForOneType image_rules; 60 ContentSettingsForOneType image_rules;
61 ContentSettingsForOneType script_rules; 61 ContentSettingsForOneType script_rules;
62 ContentSettingsForOneType autoplay_rules;
62 }; 63 };
63 64
64 namespace content_settings { 65 namespace content_settings {
65 66
66 typedef std::string ResourceIdentifier; 67 typedef std::string ResourceIdentifier;
67 68
68 // Enum containing the various source for content settings. Settings can be 69 // Enum containing the various source for content settings. Settings can be
69 // set by policy, extension, the user or by the custodian of a supervised user. 70 // set by policy, extension, the user or by the custodian of a supervised user.
70 // Certain (internal) schemes are whilelisted. For whilelisted schemes the 71 // Certain (internal) schemes are whilelisted. For whilelisted schemes the
71 // source is |SETTING_SOURCE_WHITELIST|. 72 // source is |SETTING_SOURCE_WHITELIST|.
(...skipping 11 matching lines...) Expand all
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