| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/extension_manifest_constants.h" | 5 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 6 | 6 |
| 7 namespace extension_manifest_keys { | 7 namespace extension_manifest_keys { |
| 8 | 8 |
| 9 const char kAllFrames[] = "all_frames"; | 9 const char kAllFrames[] = "all_frames"; |
| 10 const char kAltKey[] = "altKey"; | 10 const char kAltKey[] = "altKey"; |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 "Invalid value for 'web_accessible_resources'."; | 450 "Invalid value for 'web_accessible_resources'."; |
| 451 const char kInvalidWebAccessibleResource[] = | 451 const char kInvalidWebAccessibleResource[] = |
| 452 "Invalid value for 'web_accessible_resources[*]'."; | 452 "Invalid value for 'web_accessible_resources[*]'."; |
| 453 const char kInvalidWebURL[] = | 453 const char kInvalidWebURL[] = |
| 454 "Invalid value for 'app.urls[*]': *"; | 454 "Invalid value for 'app.urls[*]': *"; |
| 455 const char kInvalidWebURLs[] = | 455 const char kInvalidWebURLs[] = |
| 456 "Invalid value for 'app.urls'."; | 456 "Invalid value for 'app.urls'."; |
| 457 const char kInvalidZipHash[] = | 457 const char kInvalidZipHash[] = |
| 458 "Required key 'zip_hash' is missing or invalid."; | 458 "Required key 'zip_hash' is missing or invalid."; |
| 459 const char kInsecureContentSecurityPolicy[] = | 459 const char kInsecureContentSecurityPolicy[] = |
| 460 "Invalid value for 'content_security_policy': The 'script-src' and" | 460 "Invalid value for 'content_security_policy': Both 'script-src' and" |
| 461 " 'object-src' directives can only whitelist secure resources. You may" | 461 " 'object-src' directives must be specified (either explicitly, or" |
| 462 " include any of the following sources: \"'self'\", \"http://127.0.0.1\"," | 462 " implicitly via 'default-src'), and both must whitelist only secure" |
| 463 " \"http://localhost\", or any \"https://\" or \"chrome-extension://\"" | 463 " resources. You may include any of the following sources: \"'self'\"," |
| 464 " origin. For more information, see" | 464 " \"'unsafe-eval'\", \"http://127.0.0.1\", \"http://localhost\", or any" |
| 465 " http://developer.chrome.com/extensions/contentSecurityPolicy.html"; | 465 " \"https://\" or \"chrome-extension://\" origin. For more information," |
| 466 " see http://developer.chrome.com/extensions/contentSecurityPolicy.html"; |
| 466 const char kLaunchPathAndExtentAreExclusive[] = | 467 const char kLaunchPathAndExtentAreExclusive[] = |
| 467 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; | 468 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; |
| 468 const char kLaunchPathAndURLAreExclusive[] = | 469 const char kLaunchPathAndURLAreExclusive[] = |
| 469 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " | 470 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " |
| 470 "both be set."; | 471 "both be set."; |
| 471 const char kLaunchURLRequired[] = | 472 const char kLaunchURLRequired[] = |
| 472 "Either 'app.launch.local_path' or 'app.launch.web_url' is required."; | 473 "Either 'app.launch.local_path' or 'app.launch.web_url' is required."; |
| 473 const char kLocalesMessagesFileMissing[] = | 474 const char kLocalesMessagesFileMissing[] = |
| 474 "Messages file is missing for locale."; | 475 "Messages file is missing for locale."; |
| 475 const char kLocalesNoDefaultLocaleSpecified[] = | 476 const char kLocalesNoDefaultLocaleSpecified[] = |
| (...skipping 30 matching lines...) Expand all Loading... |
| 506 const char kScriptBadgeTitleIgnored[] = | 507 const char kScriptBadgeTitleIgnored[] = |
| 507 "default_title specified in script_badge manifest section will not be " | 508 "default_title specified in script_badge manifest section will not be " |
| 508 "used."; | 509 "used."; |
| 509 const char kWebRequestConflictsWithLazyBackground[] = | 510 const char kWebRequestConflictsWithLazyBackground[] = |
| 510 "The 'webRequest' API cannot be used with event pages."; | 511 "The 'webRequest' API cannot be used with event pages."; |
| 511 #if defined(OS_CHROMEOS) | 512 #if defined(OS_CHROMEOS) |
| 512 const char kIllegalPlugins[] = | 513 const char kIllegalPlugins[] = |
| 513 "Extensions cannot install plugins on Chrome OS"; | 514 "Extensions cannot install plugins on Chrome OS"; |
| 514 #endif | 515 #endif |
| 515 } // namespace extension_manifest_errors | 516 } // namespace extension_manifest_errors |
| OLD | NEW |