| 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/host_content_settings_map.h" | 5 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 rule.primary_pattern, rule.secondary_pattern, | 400 rule.primary_pattern, rule.secondary_pattern, |
| 401 content_settings::ValueToContentSetting(rule.value.get()), | 401 content_settings::ValueToContentSetting(rule.value.get()), |
| 402 kProviderNames[provider_type], | 402 kProviderNames[provider_type], |
| 403 incognito)); | 403 incognito)); |
| 404 } | 404 } |
| 405 } | 405 } |
| 406 | 406 |
| 407 bool HostContentSettingsMap::ShouldAllowAllContent( | 407 bool HostContentSettingsMap::ShouldAllowAllContent( |
| 408 const GURL& url, | 408 const GURL& url, |
| 409 ContentSettingsType content_type) { | 409 ContentSettingsType content_type) { |
| 410 if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS) | 410 if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS || |
| 411 content_type == CONTENT_SETTINGS_TYPE_COOKIES) |
| 411 return false; | 412 return false; |
| 412 return url.SchemeIs(chrome::kChromeDevToolsScheme) || | 413 return url.SchemeIs(chrome::kChromeDevToolsScheme) || |
| 413 url.SchemeIs(chrome::kChromeInternalScheme) || | 414 url.SchemeIs(chrome::kChromeInternalScheme) || |
| 414 url.SchemeIs(chrome::kChromeUIScheme) || | 415 url.SchemeIs(chrome::kChromeUIScheme) || |
| 415 url.SchemeIs(chrome::kExtensionScheme); | 416 url.SchemeIs(chrome::kExtensionScheme); |
| 416 } | 417 } |
| OLD | NEW |