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

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

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) 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 #include "components/content_settings/core/browser/content_settings_utils.h" 5 #include "components/content_settings/core/browser/content_settings_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void GetRendererContentSettingRules(const HostContentSettingsMap* map, 133 void GetRendererContentSettingRules(const HostContentSettingsMap* map,
134 RendererContentSettingRules* rules) { 134 RendererContentSettingRules* rules) {
135 map->GetSettingsForOneType( 135 map->GetSettingsForOneType(
136 CONTENT_SETTINGS_TYPE_IMAGES, 136 CONTENT_SETTINGS_TYPE_IMAGES,
137 ResourceIdentifier(), 137 ResourceIdentifier(),
138 &(rules->image_rules)); 138 &(rules->image_rules));
139 map->GetSettingsForOneType( 139 map->GetSettingsForOneType(
140 CONTENT_SETTINGS_TYPE_JAVASCRIPT, 140 CONTENT_SETTINGS_TYPE_JAVASCRIPT,
141 ResourceIdentifier(), 141 ResourceIdentifier(),
142 &(rules->script_rules)); 142 &(rules->script_rules));
143 map->GetSettingsForOneType(
144 CONTENT_SETTINGS_TYPE_AUTOPLAY,
145 ResourceIdentifier(),
146 &(rules->autoplay_rules));
143 } 147 }
144 148
145 } // namespace content_settings 149 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698