| 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/extensions/extension_content_settings_api_constants.h" | 5 #include "chrome/browser/extensions/extension_content_settings_api_constants.h" |
| 6 | 6 |
| 7 namespace extension_content_settings_api_constants { | 7 namespace extension_content_settings_api_constants { |
| 8 | 8 |
| 9 // Keys. | 9 // Keys. |
| 10 const char kContentSettingKey[] = "setting"; | 10 const char kContentSettingKey[] = "setting"; |
| 11 const char kContentSettingsTypeKey[] = "type"; | 11 const char kContentSettingsTypeKey[] = "type"; |
| 12 const char kDescriptionKey[] = "description"; | 12 const char kDescriptionKey[] = "description"; |
| 13 const char kEmbeddedPatternKey[] = "embeddedPattern"; | 13 const char kEmbeddedPatternKey[] = "embeddedPattern"; |
| 14 const char kEmbeddedUrlKey[] = "embeddedUrl"; | 14 const char kEmbeddedUrlKey[] = "embeddedUrl"; |
| 15 const char kIdKey[] = "id"; | 15 const char kIdKey[] = "id"; |
| 16 const char kIncognitoKey[] = "incognito"; | 16 const char kPatternKey[] = "pattern"; |
| 17 const char kOnlyNonDefaultKey[] = "onlyNonDefault"; | |
| 18 const char kResourceIdentifierKey[] = "resourceIdentifier"; | 17 const char kResourceIdentifierKey[] = "resourceIdentifier"; |
| 19 const char kRuleKey[] = "rule"; | 18 const char kRuleKey[] = "rule"; |
| 20 const char kTopLevelPatternKey[] = "topLevelPattern"; | 19 const char kTopLevelPatternKey[] = "topLevelPattern"; |
| 21 const char kUrlKey[] = "url"; | 20 const char kTopLevelUrlKey[] = "topLevelUrl"; |
| 22 | 21 |
| 23 // Errors. | 22 // Errors. |
| 24 const char kInvalidContentSettingError[] = | 23 const char kIncognitoContextError[] = |
| 25 "Invalid content setting \"*\" for content type \"*\"."; | 24 "Can't modify regular settings from an incognito context."; |
| 25 const char kIncognitoSessionOnlyError[] = |
| 26 "You cannot read incognito content settings when no incognito window " |
| 27 "is open."; |
| 26 const char kInvalidUrlError[] = "The URL \"*\" is invalid."; | 28 const char kInvalidUrlError[] = "The URL \"*\" is invalid."; |
| 27 | 29 |
| 28 } // extension_content_settings_api_constants | 30 } // extension_content_settings_api_constants |
| OLD | NEW |