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_details.h" | 5 #include "chrome/browser/content_settings/content_settings_details.h" |
6 | 6 |
| 7 #include "extensions/common/constants.h" |
| 8 |
7 ContentSettingsDetails::ContentSettingsDetails( | 9 ContentSettingsDetails::ContentSettingsDetails( |
8 const ContentSettingsPattern& primary_pattern, | 10 const ContentSettingsPattern& primary_pattern, |
9 const ContentSettingsPattern& secondary_pattern, | 11 const ContentSettingsPattern& secondary_pattern, |
10 ContentSettingsType type, | 12 ContentSettingsType type, |
11 const std::string& resource_identifier) | 13 const std::string& resource_identifier) |
12 : primary_pattern_(primary_pattern), | 14 : primary_pattern_(primary_pattern), |
13 secondary_pattern_(secondary_pattern), | 15 secondary_pattern_(secondary_pattern), |
14 type_(type), | 16 type_(type), |
15 resource_identifier_(resource_identifier) { | 17 resource_identifier_(resource_identifier) { |
16 } | 18 } |
| 19 |
| 20 bool ContentSettingsDetails::update_all() const { |
| 21 return primary_pattern_.ToString(extensions::kExtensionScheme).empty() && |
| 22 secondary_pattern_.ToString(extensions::kExtensionScheme).empty(); |
| 23 } |
OLD | NEW |