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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 const char kPageActionIcons[] = "icons"; | 99 const char kPageActionIcons[] = "icons"; |
100 const char kPageActionId[] = "id"; | 100 const char kPageActionId[] = "id"; |
101 const char kPageActionPopup[] = "popup"; | 101 const char kPageActionPopup[] = "popup"; |
102 const char kPageActionPopupPath[] = "path"; | 102 const char kPageActionPopupPath[] = "path"; |
103 const char kPageActions[] = "page_actions"; | 103 const char kPageActions[] = "page_actions"; |
104 const char kPermissions[] = "permissions"; | 104 const char kPermissions[] = "permissions"; |
105 const char kPlatformAppBackground[] = "app.background"; | 105 const char kPlatformAppBackground[] = "app.background"; |
106 const char kPlatformAppBackgroundPage[] = "app.background.page"; | 106 const char kPlatformAppBackgroundPage[] = "app.background.page"; |
107 const char kPlatformAppBackgroundScripts[] = "app.background.scripts"; | 107 const char kPlatformAppBackgroundScripts[] = "app.background.scripts"; |
108 const char kPlatformAppContentSecurityPolicy[] = "app.content_security_policy"; | 108 const char kPlatformAppContentSecurityPolicy[] = "app.content_security_policy"; |
109 const char kPlatformAppServiceWorker[] = "app.service_worker"; | |
110 const char kPlatformAppServiceWorkerScript[] = "app.service_worker.script"; | |
109 const char kPlugins[] = "plugins"; | 111 const char kPlugins[] = "plugins"; |
110 const char kPluginsPath[] = "path"; | 112 const char kPluginsPath[] = "path"; |
111 const char kPluginsPublic[] = "public"; | 113 const char kPluginsPublic[] = "public"; |
112 const char kPublicKey[] = "key"; | 114 const char kPublicKey[] = "key"; |
113 const char kRemoveButton[] = "remove_button"; | 115 const char kRemoveButton[] = "remove_button"; |
114 const char kResources[] = "resources"; | 116 const char kResources[] = "resources"; |
115 const char kRequirements[] = "requirements"; | 117 const char kRequirements[] = "requirements"; |
116 const char kRunAt[] = "run_at"; | 118 const char kRunAt[] = "run_at"; |
117 const char kSandboxedPages[] = "sandbox.pages"; | 119 const char kSandboxedPages[] = "sandbox.pages"; |
118 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; | 120 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy"; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 "The 'activeTab' permission is not in effect because this extension has " | 229 "The 'activeTab' permission is not in effect because this extension has " |
228 "not been in invoked."; | 230 "not been in invoked."; |
229 const char kAllURLOrActiveTabNeeded[] = | 231 const char kAllURLOrActiveTabNeeded[] = |
230 "Either the '<all_urls>' or 'activeTab' permission is required."; | 232 "Either the '<all_urls>' or 'activeTab' permission is required."; |
231 const char kAppsNotEnabled[] = | 233 const char kAppsNotEnabled[] = |
232 "Apps are not enabled."; | 234 "Apps are not enabled."; |
233 const char kBackgroundPermissionNeeded[] = | 235 const char kBackgroundPermissionNeeded[] = |
234 "Hosted apps that use 'background_page' must have the 'background' " | 236 "Hosted apps that use 'background_page' must have the 'background' " |
235 "permission."; | 237 "permission."; |
236 const char kBackgroundRequiredForPlatformApps[] = | 238 const char kBackgroundRequiredForPlatformApps[] = |
237 "Packaged apps must have a background page or background scripts."; | 239 "Packaged apps must have background scripts, service worker, or background " |
Jeffrey Yasskin
2014/02/28 01:54:37
I'd kind of like to avoid mentioning service worke
scheib
2014/03/03 19:54:00
Done. Will follow up later with http://crbug.com/3
| |
240 "page."; | |
238 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; | 241 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; |
239 const char kCannotAccessExtensionUrl[] = | 242 const char kCannotAccessExtensionUrl[] = |
240 "Cannot access a chrome-extension:// URL of different extension"; | 243 "Cannot access a chrome-extension:// URL of different extension"; |
241 const char kCannotAccessPage[] = | 244 const char kCannotAccessPage[] = |
242 "Cannot access contents of url \"*\". " | 245 "Cannot access contents of url \"*\". " |
243 "Extension manifest must request permission to access this host."; | 246 "Extension manifest must request permission to access this host."; |
244 const char kCannotChangeExtensionID[] = | 247 const char kCannotChangeExtensionID[] = |
245 "Installed extensions cannot change their IDs."; | 248 "Installed extensions cannot change their IDs."; |
246 const char kCannotClaimAllHostsInExtent[] = | 249 const char kCannotClaimAllHostsInExtent[] = |
247 "Cannot claim all hosts ('*') in an extent."; | 250 "Cannot claim all hosts ('*') in an extent."; |
(...skipping 12 matching lines...) Expand all Loading... | |
260 "Loading extensions with 'experimental' permission is turned off by " | 263 "Loading extensions with 'experimental' permission is turned off by " |
261 "default. You can enable 'Experimental Extension APIs' " | 264 "default. You can enable 'Experimental Extension APIs' " |
262 "by visiting chrome://flags."; | 265 "by visiting chrome://flags."; |
263 const char kInvalidAllFrames[] = | 266 const char kInvalidAllFrames[] = |
264 "Invalid value for 'content_scripts[*].all_frames'."; | 267 "Invalid value for 'content_scripts[*].all_frames'."; |
265 const char kInvalidBackground[] = | 268 const char kInvalidBackground[] = |
266 "Invalid value for 'background_page'."; | 269 "Invalid value for 'background_page'."; |
267 const char kInvalidBackgroundAllowJsAccess[] = | 270 const char kInvalidBackgroundAllowJsAccess[] = |
268 "Invalid value for 'background.allow_js_access'."; | 271 "Invalid value for 'background.allow_js_access'."; |
269 const char kInvalidBackgroundCombination[] = | 272 const char kInvalidBackgroundCombination[] = |
270 "The background.page and background.scripts properties cannot be used at " | 273 "The background.page, background.scripts, and service_worker properties " |
271 "the same time."; | 274 "cannot be used at the same time."; |
272 const char kInvalidBackgroundScript[] = | 275 const char kInvalidBackgroundScript[] = |
273 "Invalid value for 'background.scripts[*]'."; | 276 "Invalid value for 'background.scripts[*]'."; |
274 const char kInvalidBackgroundScripts[] = | 277 const char kInvalidBackgroundScripts[] = |
275 "Invalid value for 'background.scripts'."; | 278 "Invalid value for 'background.scripts'."; |
276 const char kInvalidBackgroundInHostedApp[] = | 279 const char kInvalidBackgroundInHostedApp[] = |
277 "Invalid value for 'background_page'. Hosted apps must specify an " | 280 "Invalid value for 'background_page'. Hosted apps must specify an " |
278 "absolute HTTPS URL for the background page."; | 281 "absolute HTTPS URL for the background page."; |
279 const char kInvalidBackgroundPersistent[] = | 282 const char kInvalidBackgroundPersistent[] = |
280 "Invalid value for 'background.persistent'."; | 283 "Invalid value for 'background.persistent'."; |
281 const char kInvalidBackgroundPersistentNoPage[] = | 284 const char kInvalidBackgroundPersistentNoPage[] = |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 const char kInvalidSandboxedPagesList[] = | 550 const char kInvalidSandboxedPagesList[] = |
548 "Invalid value for 'sandbox.pages'."; | 551 "Invalid value for 'sandbox.pages'."; |
549 const char kInvalidSandboxedPage[] = | 552 const char kInvalidSandboxedPage[] = |
550 "Invalid value for 'sandbox.pages[*]'."; | 553 "Invalid value for 'sandbox.pages[*]'."; |
551 const char kInvalidSandboxedPagesCSP[] = | 554 const char kInvalidSandboxedPagesCSP[] = |
552 "Invalid value for 'sandbox.content_security_policy'."; | 555 "Invalid value for 'sandbox.content_security_policy'."; |
553 const char kInvalidScriptBadge[] = | 556 const char kInvalidScriptBadge[] = |
554 "Invalid value for 'script_badge'."; | 557 "Invalid value for 'script_badge'."; |
555 const char kInvalidSearchEngineURL[] = | 558 const char kInvalidSearchEngineURL[] = |
556 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'."; | 559 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'."; |
560 const char kInvalidServiceWorkerScript[] = | |
561 "Invalid value for 'service_worker.script'."; | |
557 const char kInvalidEmptySettingsOverrides[] = | 562 const char kInvalidEmptySettingsOverrides[] = |
558 "Empty dictionary for 'chrome_settings_overrides'."; | 563 "Empty dictionary for 'chrome_settings_overrides'."; |
559 const char kInvalidShortName[] = | 564 const char kInvalidShortName[] = |
560 "Invalid value for 'short_name'."; | 565 "Invalid value for 'short_name'."; |
561 const char kInvalidSignature[] = | 566 const char kInvalidSignature[] = |
562 "Value 'signature' is missing or invalid."; | 567 "Value 'signature' is missing or invalid."; |
563 const char kInvalidSpellcheck[] = | 568 const char kInvalidSpellcheck[] = |
564 "Invalid value for 'spellcheck'."; | 569 "Invalid value for 'spellcheck'."; |
565 const char kInvalidSpellcheckDictionaryFormat[] = | 570 const char kInvalidSpellcheckDictionaryFormat[] = |
566 "Invalid value for spellcheck dictionary format."; | 571 "Invalid value for spellcheck dictionary format."; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
702 const char kWebRequestConflictsWithLazyBackground[] = | 707 const char kWebRequestConflictsWithLazyBackground[] = |
703 "The 'webRequest' API cannot be used with event pages."; | 708 "The 'webRequest' API cannot be used with event pages."; |
704 #if defined(OS_CHROMEOS) | 709 #if defined(OS_CHROMEOS) |
705 const char kIllegalPlugins[] = | 710 const char kIllegalPlugins[] = |
706 "Extensions cannot install plugins on Chrome OS"; | 711 "Extensions cannot install plugins on Chrome OS"; |
707 #endif | 712 #endif |
708 | 713 |
709 } // namespace manifest_errors | 714 } // namespace manifest_errors |
710 | 715 |
711 } // namespace extensions | 716 } // namespace extensions |
OLD | NEW |