| 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> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
| 12 #include "base/values.h" | 15 #include "base/values.h" |
| 13 #include "components/content_settings/core/browser/host_content_settings_map.h" | 16 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 14 | 17 |
| 15 namespace { | 18 namespace { |
| 16 | 19 |
| 17 const char kPatternSeparator[] = ","; | 20 const char kPatternSeparator[] = ","; |
| 18 | 21 |
| 19 struct ContentSettingsStringMapping { | 22 struct ContentSettingsStringMapping { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 CONTENT_SETTINGS_TYPE_IMAGES, | 136 CONTENT_SETTINGS_TYPE_IMAGES, |
| 134 ResourceIdentifier(), | 137 ResourceIdentifier(), |
| 135 &(rules->image_rules)); | 138 &(rules->image_rules)); |
| 136 map->GetSettingsForOneType( | 139 map->GetSettingsForOneType( |
| 137 CONTENT_SETTINGS_TYPE_JAVASCRIPT, | 140 CONTENT_SETTINGS_TYPE_JAVASCRIPT, |
| 138 ResourceIdentifier(), | 141 ResourceIdentifier(), |
| 139 &(rules->script_rules)); | 142 &(rules->script_rules)); |
| 140 } | 143 } |
| 141 | 144 |
| 142 } // namespace content_settings | 145 } // namespace content_settings |
| OLD | NEW |