| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |