OLD | NEW |
---|---|
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 #include "chrome/browser/content_settings/content_settings_policy_provider.h" | 5 #include "chrome/browser/content_settings/content_settings_policy_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 struct PrefsForManagedContentSettingsMapEntry { | 42 struct PrefsForManagedContentSettingsMapEntry { |
43 const char* pref_name; | 43 const char* pref_name; |
44 ContentSettingsType content_type; | 44 ContentSettingsType content_type; |
45 ContentSetting setting; | 45 ContentSetting setting; |
46 }; | 46 }; |
47 | 47 |
48 const PrefsForManagedContentSettingsMapEntry | 48 const PrefsForManagedContentSettingsMapEntry |
49 kPrefsForManagedContentSettingsMap[] = { | 49 kPrefsForManagedContentSettingsMap[] = { |
50 { | 50 { |
51 prefs::kManagedCookiesAllowedForUrls, | 51 prefs::kManagedCookiesAllowedForUrls, |
52 CONTENT_SETTINGS_TYPE_COOKIES, | 52 CONTENT_SETTINGS_TYPE_COOKIES, |
markusheintz_
2011/08/29 08:47:09
You also need to add new policies and new preferen
| |
53 CONTENT_SETTING_ALLOW | 53 CONTENT_SETTING_ALLOW |
54 }, { | 54 }, { |
55 prefs::kManagedCookiesAllowedForUrls, | |
56 CONTENT_SETTINGS_TYPE_COOKIES_SESSION_ONLY, | |
57 CONTENT_SETTING_ALLOW | |
58 }, { | |
59 prefs::kManagedCookiesSessionOnlyForUrls, | |
60 CONTENT_SETTINGS_TYPE_COOKIES, | |
61 CONTENT_SETTING_ALLOW | |
62 }, { | |
55 prefs::kManagedCookiesSessionOnlyForUrls, | 63 prefs::kManagedCookiesSessionOnlyForUrls, |
56 CONTENT_SETTINGS_TYPE_COOKIES, | 64 CONTENT_SETTINGS_TYPE_COOKIES_SESSION_ONLY, |
57 CONTENT_SETTING_SESSION_ONLY | 65 CONTENT_SETTING_SESSION_ONLY |
58 }, { | 66 }, { |
59 prefs::kManagedCookiesBlockedForUrls, | 67 prefs::kManagedCookiesBlockedForUrls, |
60 CONTENT_SETTINGS_TYPE_COOKIES, | 68 CONTENT_SETTINGS_TYPE_COOKIES, |
61 CONTENT_SETTING_BLOCK | 69 CONTENT_SETTING_BLOCK |
62 }, { | 70 }, { |
63 prefs::kManagedImagesAllowedForUrls, | 71 prefs::kManagedImagesAllowedForUrls, |
64 CONTENT_SETTINGS_TYPE_IMAGES, | 72 CONTENT_SETTINGS_TYPE_IMAGES, |
65 CONTENT_SETTING_ALLOW | 73 CONTENT_SETTING_ALLOW |
66 }, { | 74 }, { |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
452 ContentSettingsPattern(), | 460 ContentSettingsPattern(), |
453 CONTENT_SETTINGS_TYPE_DEFAULT, | 461 CONTENT_SETTINGS_TYPE_DEFAULT, |
454 std::string()); | 462 std::string()); |
455 } | 463 } |
456 } else { | 464 } else { |
457 NOTREACHED() << "Unexpected notification"; | 465 NOTREACHED() << "Unexpected notification"; |
458 } | 466 } |
459 } | 467 } |
460 | 468 |
461 } // namespace content_settings | 469 } // namespace content_settings |
OLD | NEW |