OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/common/manifest_constants.h" | 5 #include "extensions/common/manifest_constants.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 | 8 |
9 namespace manifest_keys { | 9 namespace manifest_keys { |
10 | 10 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 const char kInvalidChromeURLOverrides[] = | 301 const char kInvalidChromeURLOverrides[] = |
302 "Invalid value for 'chrome_url_overrides'."; | 302 "Invalid value for 'chrome_url_overrides'."; |
303 const char kInvalidCommandsKey[] = | 303 const char kInvalidCommandsKey[] = |
304 "Invalid value for 'commands'."; | 304 "Invalid value for 'commands'."; |
305 const char kInvalidContentPack[] = | 305 const char kInvalidContentPack[] = |
306 "Invalid value for 'content_pack'."; | 306 "Invalid value for 'content_pack'."; |
307 const char kInvalidContentPackSites[] = | 307 const char kInvalidContentPackSites[] = |
308 "Invalid value for Content Pack sites - files must be strings."; | 308 "Invalid value for Content Pack sites - files must be strings."; |
309 const char kInvalidContentScript[] = | 309 const char kInvalidContentScript[] = |
310 "Invalid value for 'content_scripts[*]'."; | 310 "Invalid value for 'content_scripts[*]'."; |
| 311 const char kInvalidContentScriptsList[] = |
| 312 "Invalid value for 'content_scripts'."; |
311 const char kInvalidContentSecurityPolicy[] = | 313 const char kInvalidContentSecurityPolicy[] = |
312 "Invalid value for 'content_security_policy'."; | 314 "Invalid value for 'content_security_policy'."; |
313 const char kInvalidContentScriptsList[] = | 315 const char kInvalidCSPInsecureValue[] = |
314 "Invalid value for 'content_scripts'."; | 316 "Ignored insecure CSP value \"*\" in directive '*'."; |
| 317 const char kInvalidCSPMissingSecureSrc[] = |
| 318 "CSP directive '*' must be specified (either explicitly, or implicitly via" |
| 319 " 'default-src') and must whitelist only secure resources."; |
315 const char kInvalidCss[] = | 320 const char kInvalidCss[] = |
316 "Invalid value for 'content_scripts[*].css[*]'."; | 321 "Invalid value for 'content_scripts[*].css[*]'."; |
317 const char kInvalidCssList[] = | 322 const char kInvalidCssList[] = |
318 "Required value 'content_scripts[*].css' is invalid."; | 323 "Required value 'content_scripts[*].css' is invalid."; |
319 const char kInvalidDefaultLocale[] = | 324 const char kInvalidDefaultLocale[] = |
320 "Invalid value for default locale - locale name must be a string."; | 325 "Invalid value for default locale - locale name must be a string."; |
321 const char kInvalidDescription[] = | 326 const char kInvalidDescription[] = |
322 "Invalid value for 'description'."; | 327 "Invalid value for 'description'."; |
323 const char kInvalidDevToolsPage[] = | 328 const char kInvalidDevToolsPage[] = |
324 "Invalid value for 'devtools_page'."; | 329 "Invalid value for 'devtools_page'."; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 const char kInvalidWebviewPartitionName[] = | 620 const char kInvalidWebviewPartitionName[] = |
616 "Invalid value for 'webview.partitions[*].name'."; | 621 "Invalid value for 'webview.partitions[*].name'."; |
617 const char kInvalidWebviewPartitionsList[] = | 622 const char kInvalidWebviewPartitionsList[] = |
618 "Invalid value for 'webview.partitions'."; | 623 "Invalid value for 'webview.partitions'."; |
619 const char kInvalidWebURL[] = | 624 const char kInvalidWebURL[] = |
620 "Invalid value for 'app.urls[*]': *"; | 625 "Invalid value for 'app.urls[*]': *"; |
621 const char kInvalidWebURLs[] = | 626 const char kInvalidWebURLs[] = |
622 "Invalid value for 'app.urls'."; | 627 "Invalid value for 'app.urls'."; |
623 const char kInvalidZipHash[] = | 628 const char kInvalidZipHash[] = |
624 "Required key 'zip_hash' is missing or invalid."; | 629 "Required key 'zip_hash' is missing or invalid."; |
625 const char kInsecureContentSecurityPolicy[] = | |
626 "Invalid value for 'content_security_policy': Both 'script-src' and" | |
627 " 'object-src' directives must be specified (either explicitly, or" | |
628 " implicitly via 'default-src'), and both must whitelist only secure" | |
629 " resources. You may include any of the following sources: \"'self'\"," | |
630 " \"'unsafe-eval'\", \"http://127.0.0.1\", \"http://localhost\", or any" | |
631 " \"https://\" or \"chrome-extension://\" origin. For more information," | |
632 " see http://developer.chrome.com/extensions/contentSecurityPolicy.html"; | |
633 const char kKeyIsDeprecatedWithReplacement[] = | 630 const char kKeyIsDeprecatedWithReplacement[] = |
634 "Key \"*\" is deprecated. Key \"*\" should be used instead."; | 631 "Key \"*\" is deprecated. Key \"*\" should be used instead."; |
635 const char kLauncherPagePageRequired[] = | 632 const char kLauncherPagePageRequired[] = |
636 "The 'launcher_page.page' key is required."; | 633 "The 'launcher_page.page' key is required."; |
637 const char kLaunchPathAndExtentAreExclusive[] = | 634 const char kLaunchPathAndExtentAreExclusive[] = |
638 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; | 635 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set."; |
639 const char kLaunchPathAndURLAreExclusive[] = | 636 const char kLaunchPathAndURLAreExclusive[] = |
640 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " | 637 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot " |
641 "both be set."; | 638 "both be set."; |
642 const char kLaunchURLRequired[] = | 639 const char kLaunchURLRequired[] = |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 const char kWebRequestConflictsWithLazyBackground[] = | 688 const char kWebRequestConflictsWithLazyBackground[] = |
692 "The 'webRequest' API cannot be used with event pages."; | 689 "The 'webRequest' API cannot be used with event pages."; |
693 #if defined(OS_CHROMEOS) | 690 #if defined(OS_CHROMEOS) |
694 const char kIllegalPlugins[] = | 691 const char kIllegalPlugins[] = |
695 "Extensions cannot install plugins on Chrome OS"; | 692 "Extensions cannot install plugins on Chrome OS"; |
696 #endif | 693 #endif |
697 | 694 |
698 } // namespace manifest_errors | 695 } // namespace manifest_errors |
699 | 696 |
700 } // namespace extensions | 697 } // namespace extensions |
OLD | NEW |