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 "chrome/browser/content_settings/content_settings_utils.h" | 5 #include "chrome/browser/content_settings/content_settings_utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // The names of the ContentSettingsType values, for use with dictionary prefs. | 24 // The names of the ContentSettingsType values, for use with dictionary prefs. |
25 const char* kTypeNames[] = { | 25 const char* kTypeNames[] = { |
26 "cookies", | 26 "cookies", |
27 "images", | 27 "images", |
28 "javascript", | 28 "javascript", |
29 "plugins", | 29 "plugins", |
30 "popups", | 30 "popups", |
31 "geolocation", | 31 "geolocation", |
32 "notifications", | 32 "notifications", |
33 "intents", | |
34 "auto-select-certificate", | 33 "auto-select-certificate", |
35 "fullscreen", | 34 "fullscreen", |
36 "mouselock", | 35 "mouselock", |
37 "mixed-script", | 36 "mixed-script", |
38 "media-stream", | 37 "media-stream", |
39 "media-stream-mic", | 38 "media-stream-mic", |
40 "media-stream-camera", | 39 "media-stream-camera", |
41 "register-protocol-handler", | 40 "register-protocol-handler", |
42 "ppapi-broker", | 41 "ppapi-broker", |
43 #if defined(OS_WIN) | 42 #if defined(OS_WIN) |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 190 |
192 void GetRendererContentSettingRules(const HostContentSettingsMap* map, | 191 void GetRendererContentSettingRules(const HostContentSettingsMap* map, |
193 RendererContentSettingRules* rules) { | 192 RendererContentSettingRules* rules) { |
194 map->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_IMAGES, "", | 193 map->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_IMAGES, "", |
195 &(rules->image_rules)); | 194 &(rules->image_rules)); |
196 map->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_JAVASCRIPT, "", | 195 map->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_JAVASCRIPT, "", |
197 &(rules->script_rules)); | 196 &(rules->script_rules)); |
198 } | 197 } |
199 | 198 |
200 } // namespace content_settings | 199 } // namespace content_settings |
OLD | NEW |