| 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/common/content_settings.h" | 5 #include "chrome/common/content_settings.h" |
| 6 | 6 |
| 7 ContentSetting IntToContentSetting(int content_setting) { | 7 ContentSetting IntToContentSetting(int content_setting) { |
| 8 return ((content_setting < 0) || | 8 return ((content_setting < 0) || |
| 9 (content_setting >= CONTENT_SETTING_NUM_SETTINGS)) ? | 9 (content_setting >= CONTENT_SETTING_NUM_SETTINGS)) ? |
| 10 CONTENT_SETTING_DEFAULT : static_cast<ContentSetting>(content_setting); | 10 CONTENT_SETTING_DEFAULT : static_cast<ContentSetting>(content_setting); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 ContentSetting setting, | 26 ContentSetting setting, |
| 27 const std::string& source, | 27 const std::string& source, |
| 28 bool incognito) | 28 bool incognito) |
| 29 : primary_pattern(primary_pattern), | 29 : primary_pattern(primary_pattern), |
| 30 secondary_pattern(secondary_pattern), | 30 secondary_pattern(secondary_pattern), |
| 31 setting(setting), | 31 setting(setting), |
| 32 source(source), | 32 source(source), |
| 33 incognito(incognito) {} | 33 incognito(incognito) {} |
| 34 | 34 |
| 35 ContentSettingPatternSource::ContentSettingPatternSource() {} | 35 ContentSettingPatternSource::ContentSettingPatternSource() {} |
| 36 |
| 37 RendererContentSettingRules::RendererContentSettingRules() {} |
| 38 |
| 39 RendererContentSettingRules::~RendererContentSettingRules() {} |
| OLD | NEW |