Connect PPAPI IPC channels for non-SFI mode.
[chromium-blink-merge.git] / extensions / common / manifest_constants.cc
blobf7bf1f4bc58637d0228ad8d01688d84d51a0738e
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
3 // found in the LICENSE file.
5 #include "extensions/common/manifest_constants.h"
7 namespace extensions {
9 namespace manifest_keys {
11 const char kAllFrames[] = "all_frames";
12 const char kAltKey[] = "altKey";
13 const char kApp[] = "app";
14 const char kBackgroundAllowJsAccess[] = "background.allow_js_access";
15 const char kBackgroundPage[] = "background.page";
16 const char kBackgroundPageLegacy[] = "background_page";
17 const char kBackgroundPersistent[] = "background.persistent";
18 const char kBackgroundScripts[] = "background.scripts";
19 const char kBluetooth[] = "bluetooth";
20 const char kBookmarkUI[] = "chrome_settings_overrides.bookmarks_ui";
21 const char kBrowserAction[] = "browser_action";
22 const char kChromeURLOverrides[] = "chrome_url_overrides";
23 const char kCommands[] = "commands";
24 const char kContentPack[] = "content_pack";
25 const char kContentPackSites[] = "sites";
26 const char kContentScripts[] = "content_scripts";
27 const char kContentSecurityPolicy[] = "content_security_policy";
28 const char kConvertedFromUserScript[] = "converted_from_user_script";
29 const char kCss[] = "css";
30 const char kCtrlKey[] = "ctrlKey";
31 const char kCurrentLocale[] = "current_locale";
32 const char kDefaultLocale[] = "default_locale";
33 const char kDescription[] = "description";
34 const char kDevToolsPage[] = "devtools_page";
35 const char kDisplayInLauncher[] = "display_in_launcher";
36 const char kDisplayInNewTabPage[] = "display_in_new_tab_page";
37 const char kEventName[] = "event_name";
38 const char kExcludeGlobs[] = "exclude_globs";
39 const char kExcludeMatches[] = "exclude_matches";
40 const char kExport[] = "export";
41 const char kExternallyConnectable[] = "externally_connectable";
42 const char kFileAccessList[] = "file_access";
43 const char kFileFilters[] = "file_filters";
44 const char kFileBrowserHandlers[] = "file_browser_handlers";
45 const char kMediaGalleriesHandlers[] = "media_galleries_handlers";
46 const char kFileHandlers[] = "file_handlers";
47 const char kFileHandlerExtensions[] = "extensions";
48 const char kFileHandlerTitle[] = "title";
49 const char kFileHandlerTypes[] = "types";
50 const char kGlobal[] = "global";
51 const char kHideBookmarkButton[] = "hide_bookmark_button";
52 const char kHomepageURL[] = "homepage_url";
53 const char kIcons[] = "icons";
54 const char kId[] = "id";
55 const char kImeOptionsPage[] = "options_page";
56 const char kImport[] = "import";
57 const char kIncognito[] = "incognito";
58 const char kIncludeGlobs[] = "include_globs";
59 const char kInputComponents[] = "input_components";
60 const char kInputView[] = "input_view";
61 const char kIsolation[] = "app.isolation";
62 const char kJs[] = "js";
63 const char kKey[] = "key";
64 const char kKeycode[] = "keyCode";
65 const char kKioskEnabled[] = "kiosk_enabled";
66 const char kKioskOnly[] = "kiosk_only";
67 const char kKioskMode[] = "kiosk_mode";
68 const char kLanguage[] = "language";
69 const char kLaunch[] = "app.launch";
70 const char kLaunchContainer[] = "app.launch.container";
71 const char kLaunchHeight[] = "app.launch.height";
72 const char kLaunchLocalPath[] = "app.launch.local_path";
73 const char kLaunchWebURL[] = "app.launch.web_url";
74 const char kLaunchWidth[] = "app.launch.width";
75 const char kLayouts[] = "layouts";
76 const char kManifestVersion[] = "manifest_version";
77 const char kMatches[] = "matches";
78 const char kMinimumChromeVersion[] = "minimum_chrome_version";
79 const char kMinimumVersion[] = "minimum_version";
80 const char kMIMETypes[] = "mime_types";
81 const char kMimeTypesHandler[] = "mime_types_handler";
82 const char kName[] = "name";
83 const char kNaClModules[] = "nacl_modules";
84 const char kNaClModulesMIMEType[] = "mime_type";
85 const char kNaClModulesPath[] = "path";
86 const char kOAuth2[] = "oauth2";
87 const char kOAuth2AutoApprove[] = "oauth2.auto_approve";
88 const char kOAuth2ClientId[] = "oauth2.client_id";
89 const char kOAuth2Scopes[] = "oauth2.scopes";
90 const char kOfflineEnabled[] = "offline_enabled";
91 const char kOmnibox[] = "omnibox";
92 const char kOmniboxKeyword[] = "omnibox.keyword";
93 const char kOptionalPermissions[] = "optional_permissions";
94 const char kOptionsPage[] = "options_page";
95 const char kPageAction[] = "page_action";
96 const char kPageActionDefaultIcon[] = "default_icon";
97 const char kPageActionDefaultPopup[] = "default_popup";
98 const char kPageActionDefaultTitle[] = "default_title";
99 const char kPageActionIcons[] = "icons";
100 const char kPageActionId[] = "id";
101 const char kPageActionPopup[] = "popup";
102 const char kPageActionPopupPath[] = "path";
103 const char kPageActions[] = "page_actions";
104 const char kPermissions[] = "permissions";
105 const char kPlatformAppBackground[] = "app.background";
106 const char kPlatformAppBackgroundPage[] = "app.background.page";
107 const char kPlatformAppBackgroundScripts[] = "app.background.scripts";
108 const char kPlatformAppContentSecurityPolicy[] = "app.content_security_policy";
109 const char kPlugins[] = "plugins";
110 const char kPluginsPath[] = "path";
111 const char kPluginsPublic[] = "public";
112 const char kPublicKey[] = "key";
113 const char kRemoveButton[] = "remove_button";
114 const char kResources[] = "resources";
115 const char kRequirements[] = "requirements";
116 const char kRunAt[] = "run_at";
117 const char kSandboxedPages[] = "sandbox.pages";
118 const char kSandboxedPagesCSP[] = "sandbox.content_security_policy";
119 const char kScriptBadge[] = "script_badge";
120 const char kSearchProvider[] = "chrome_settings_overrides.search_provider";
121 const char kSettingsOverride[] = "chrome_settings_overrides";
122 const char kSettingsOverrideAlternateUrls[] =
123 "chrome_settings_overrides.search_provider.alternate_urls";
124 const char kShiftKey[] = "shiftKey";
125 const char kShortcutKey[] = "shortcutKey";
126 const char kShortName[] = "short_name";
127 const char kSignature[] = "signature";
128 const char kSockets[] = "sockets";
129 const char kSpellcheck[] = "spellcheck";
130 const char kSpellcheckDictionaryFormat[] = "dictionary_format";
131 const char kSpellcheckDictionaryLanguage[] = "dictionary_language";
132 const char kSpellcheckDictionaryLocale[] = "dictionary_locale";
133 const char kSpellcheckDictionaryPath[] = "dictionary_path";
134 const char kStorageManagedSchema[] = "storage.managed_schema";
135 const char kSuggestedKey[] = "suggested_key";
136 const char kSystemIndicator[] = "system_indicator";
137 const char kTheme[] = "theme";
138 const char kThemeColors[] = "colors";
139 const char kThemeDisplayProperties[] = "properties";
140 const char kThemeImages[] = "images";
141 const char kThemeTints[] = "tints";
142 const char kTtsEngine[] = "tts_engine";
143 const char kTtsGenderFemale[] = "female";
144 const char kTtsGenderMale[] = "male";
145 const char kTtsVoices[] = "voices";
146 const char kTtsVoicesEventTypeEnd[] = "end";
147 const char kTtsVoicesEventTypeError[] = "error";
148 const char kTtsVoicesEventTypeMarker[] = "marker";
149 const char kTtsVoicesEventTypeSentence[] = "sentence";
150 const char kTtsVoicesEventTypeStart[] = "start";
151 const char kTtsVoicesEventTypeWord[] = "word";
152 const char kTtsVoicesEventTypes[] = "event_types";
153 const char kTtsVoicesGender[] = "gender";
154 const char kTtsVoicesLang[] = "lang";
155 const char kTtsVoicesRemote[] = "remote";
156 const char kTtsVoicesVoiceName[] = "voice_name";
157 const char kType[] = "type";
158 const char kUpdateURL[] = "update_url";
159 const char kUrlHandlers[] = "url_handlers";
160 const char kUrlHandlerTitle[] = "title";
161 const char kVersion[] = "version";
162 const char kWebAccessibleResources[] = "web_accessible_resources";
163 const char kWebURLs[] = "app.urls";
164 const char kWebview[] = "webview";
165 const char kWebviewAccessibleResources[] = "accessible_resources";
166 const char kWebviewName[] = "name";
167 const char kWebviewPartitions[] = "partitions";
169 } // namespace manifest_keys
171 namespace manifest_values {
173 const char kBrowserActionCommandEvent[] = "_execute_browser_action";
174 const char kIncognitoSplit[] = "split";
175 const char kIncognitoSpanning[] = "spanning";
176 const char kIntentDispositionWindow[] = "window";
177 const char kIntentDispositionInline[] = "inline";
178 const char kIsolatedStorage[] = "storage";
179 const char kKeybindingPlatformChromeOs[] = "chromeos";
180 const char kKeybindingPlatformDefault[] = "default";
181 const char kKeybindingPlatformLinux[] = "linux";
182 const char kKeybindingPlatformMac[] = "mac";
183 const char kKeybindingPlatformWin[] = "windows";
184 const char kKeyAlt[] = "Alt";
185 const char kKeyComma[] = "Comma";
186 const char kKeyCommand[] = "Command";
187 const char kKeyCtrl[] = "Ctrl";
188 const char kKeyDel[] = "Delete";
189 const char kKeyDown[] = "Down";
190 const char kKeyEnd[] = "End";
191 const char kKeyHome[] = "Home";
192 const char kKeyIns[] = "Insert";
193 const char kKeyLeft[] = "Left";
194 const char kKeyMacCtrl[] = "MacCtrl";
195 const char kKeyMediaNextTrack[] = "MediaNextTrack";
196 const char kKeyMediaPlayPause[] = "MediaPlayPause";
197 const char kKeyMediaPrevTrack[] = "MediaPrevTrack";
198 const char kKeyMediaStop[] = "MediaStop";
199 const char kKeyPgDwn[] = "PageDown";
200 const char kKeyPgUp[] = "PageUp";
201 const char kKeyPeriod[] = "Period";
202 const char kKeyRight[] = "Right";
203 const char kKeySeparator[] = "+";
204 const char kKeyShift[] = "Shift";
205 const char kKeyTab[] = "Tab";
206 const char kKeyUp[] = "Up";
207 const char kRunAtDocumentStart[] = "document_start";
208 const char kRunAtDocumentEnd[] = "document_end";
209 const char kRunAtDocumentIdle[] = "document_idle";
210 const char kPageActionCommandEvent[] = "_execute_page_action";
211 const char kPageActionTypeTab[] = "tab";
212 const char kPageActionTypePermanent[] = "permanent";
213 const char kScriptBadgeCommandEvent[] = "_execute_script_badge";
214 const char kLaunchContainerPanel[] = "panel";
215 const char kLaunchContainerTab[] = "tab";
216 const char kLaunchContainerWindow[] = "window";
218 } // namespace manifest_values
220 // Extension-related error messages. Some of these are simple patterns, where a
221 // '*' is replaced at runtime with a specific value. This is used instead of
222 // printf because we want to unit test them and scanf is hard to make
223 // cross-platform.
224 namespace manifest_errors {
226 const char kActiveTabPermissionNotGranted[] =
227 "The 'activeTab' permission is not in effect because this extension has "
228 "not been in invoked.";
229 const char kAllURLOrActiveTabNeeded[] =
230 "Either the '<all_urls>' or 'activeTab' permission is required.";
231 const char kAppsNotEnabled[] =
232 "Apps are not enabled.";
233 const char kBackgroundPermissionNeeded[] =
234 "Hosted apps that use 'background_page' must have the 'background' "
235 "permission.";
236 const char kBackgroundRequiredForPlatformApps[] =
237 "Packaged apps must have a background page or background scripts.";
238 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL";
239 const char kCannotAccessExtensionUrl[] =
240 "Cannot access a chrome-extension:// URL of different extension";
241 const char kCannotAccessPage[] =
242 "Cannot access contents of url \"*\". "
243 "Extension manifest must request permission to access this host.";
244 const char kCannotChangeExtensionID[] =
245 "Installed extensions cannot change their IDs.";
246 const char kCannotClaimAllHostsInExtent[] =
247 "Cannot claim all hosts ('*') in an extent.";
248 const char kCannotClaimAllURLsInExtent[] =
249 "Cannot claim all URLs in an extent.";
250 const char kCannotScriptGallery[] =
251 "The extensions gallery cannot be scripted.";
252 const char kCannotScriptSigninPage[] =
253 "The sign-in page cannot be scripted.";
254 const char kChromeVersionTooLow[] =
255 "This extension requires * version * or greater.";
256 const char kDisabledByPolicy[] =
257 "This extension has been disabled by your administrator.";
258 const char kExpectString[] = "Expect string value.";
259 const char kExperimentalFlagRequired[] =
260 "Loading extensions with 'experimental' permission is turned off by "
261 "default. You can enable 'Experimental Extension APIs' "
262 "by visiting chrome://flags.";
263 const char kInvalidAllFrames[] =
264 "Invalid value for 'content_scripts[*].all_frames'.";
265 const char kInvalidBackground[] =
266 "Invalid value for 'background_page'.";
267 const char kInvalidBackgroundAllowJsAccess[] =
268 "Invalid value for 'background.allow_js_access'.";
269 const char kInvalidBackgroundCombination[] =
270 "The background.page and background.scripts properties cannot be used at "
271 "the same time.";
272 const char kInvalidBackgroundScript[] =
273 "Invalid value for 'background.scripts[*]'.";
274 const char kInvalidBackgroundScripts[] =
275 "Invalid value for 'background.scripts'.";
276 const char kInvalidBackgroundInHostedApp[] =
277 "Invalid value for 'background_page'. Hosted apps must specify an "
278 "absolute HTTPS URL for the background page.";
279 const char kInvalidBackgroundPersistent[] =
280 "Invalid value for 'background.persistent'.";
281 const char kInvalidBackgroundPersistentNoPage[] =
282 "Must specify one of background.page or background.scripts to use"
283 " background.persistent.";
284 const char kInvalidBrowserAction[] =
285 "Invalid value for 'browser_action'.";
286 const char kInvalidChromeURLOverrides[] =
287 "Invalid value for 'chrome_url_overrides'.";
288 const char kInvalidCommandsKey[] =
289 "Invalid value for 'commands'.";
290 const char kInvalidContentPack[] =
291 "Invalid value for 'content_pack'.";
292 const char kInvalidContentPackSites[] =
293 "Invalid value for Content Pack sites - files must be strings.";
294 const char kInvalidContentScript[] =
295 "Invalid value for 'content_scripts[*]'.";
296 const char kInvalidContentSecurityPolicy[] =
297 "Invalid value for 'content_security_policy'.";
298 const char kInvalidContentScriptsList[] =
299 "Invalid value for 'content_scripts'.";
300 const char kInvalidCss[] =
301 "Invalid value for 'content_scripts[*].css[*]'.";
302 const char kInvalidCssList[] =
303 "Required value 'content_scripts[*].css' is invalid.";
304 const char kInvalidDefaultLocale[] =
305 "Invalid value for default locale - locale name must be a string.";
306 const char kInvalidDescription[] =
307 "Invalid value for 'description'.";
308 const char kInvalidDevToolsPage[] =
309 "Invalid value for 'devtools_page'.";
310 const char kInvalidDisplayInLauncher[] =
311 "Invalid value for 'display_in_launcher'.";
312 const char kInvalidDisplayInNewTabPage[] =
313 "Invalid value for 'display_in_new_tab_page'.";
314 const char kInvalidExcludeMatch[] =
315 "Invalid value for 'content_scripts[*].exclude_matches[*]': *";
316 const char kInvalidExcludeMatches[] =
317 "Invalid value for 'content_scripts[*].exclude_matches'.";
318 const char kInvalidExport[] =
319 "Invalid value for 'export'.";
320 const char kInvalidExportPermissions[] =
321 "Permissions are not allowed for extensions that export resources.";
322 const char kInvalidExportResources[] =
323 "Invalid value for 'export.resources'.";
324 const char kInvalidExportResourcesString[] =
325 "Invalid value for 'export.resources[*]'.";
326 const char kInvalidFileAccessList[] =
327 "Invalid value for 'file_access'.";
328 const char kInvalidFileAccessValue[] =
329 "Invalid value for 'file_access[*]'.";
330 const char kInvalidFileBrowserHandler[] =
331 "Invalid value for 'file_browser_handlers'.";
332 const char kInvalidMediaGalleriesHandler[] =
333 "Invalid value for 'media_galleries_handlers'.";
334 const char kInvalidFileFiltersList[] =
335 "Invalid value for 'file_filters'.";
336 const char kInvalidFileFilterValue[] =
337 "Invalid value for 'file_filters[*]'.";
338 const char kInvalidFileHandlers[] =
339 "Invalid value for 'file_handlers'.";
340 const char kInvalidFileHandlersTooManyTypesAndExtensions[] =
341 "Too many MIME and extension file_handlers have been declared.";
342 const char kInvalidFileHandlerExtension[] =
343 "Invalid value for 'file_handlers[*].extensions'.";
344 const char kInvalidFileHandlerExtensionElement[] =
345 "Invalid value for 'file_handlers[*].extensions[*]'.";
346 const char kInvalidFileHandlerNoTypeOrExtension[] =
347 "'file_handlers[*]' must contain a non-empty 'types' or 'extensions'.";
348 const char kInvalidFileHandlerTitle[] =
349 "Invalid value for 'file_handlers[*].title'.";
350 const char kInvalidFileHandlerType[] =
351 "Invalid value for 'file_handlers[*].types'.";
352 const char kInvalidFileHandlerTypeElement[] =
353 "Invalid value for 'file_handlers[*].types[*]'.";
354 const char kInvalidGlob[] =
355 "Invalid value for 'content_scripts[*].*[*]'.";
356 const char kInvalidGlobList[] =
357 "Invalid value for 'content_scripts[*].*'.";
358 const char kInvalidHomepageOverrideURL[] =
359 "Invalid value for overriding homepage url: '[*]'.";
360 const char kInvalidHomepageURL[] =
361 "Invalid value for homepage url: '[*]'.";
362 const char kInvalidIconPath[] =
363 "Invalid value for 'icons[\"*\"]'.";
364 const char kInvalidIcons[] =
365 "Invalid value for 'icons'.";
366 const char kInvalidImport[] =
367 "Invalid value for 'import'.";
368 const char kInvalidImportAndExport[] =
369 "Simultaneous 'import' and 'export' are not allowed.";
370 const char kInvalidImportId[] =
371 "Invalid value for 'import[*].id'.";
372 const char kInvalidImportVersion[] =
373 "Invalid value for 'import[*].minimum_version'.";
374 const char kInvalidIncognitoBehavior[] =
375 "Invalid value for 'incognito'.";
376 const char kInvalidInputComponents[] =
377 "Invalid value for 'input_components'";
378 const char kInvalidInputComponentDescription[] =
379 "Invalid value for 'input_components[*].description";
380 const char kInvalidInputComponentLayoutName[] =
381 "Invalid value for 'input_components[*].layouts[*]";
382 const char kInvalidInputComponentName[] =
383 "Invalid value for 'input_components[*].name";
384 const char kInvalidInputComponentShortcutKey[] =
385 "Invalid value for 'input_components[*].shortcutKey";
386 const char kInvalidInputComponentShortcutKeycode[] =
387 "Invalid value for 'input_components[*].shortcutKey.keyCode";
388 const char kInvalidInputComponentType[] =
389 "Invalid value for 'input_components[*].type";
390 const char kInvalidInputView[] =
391 "Invalid value for 'input_view'.";
392 const char kInvalidIntent[] =
393 "Invalid value for intents[*]";
394 const char kInvalidIntentDisposition[] =
395 "Invalid value for intents[*].disposition";
396 const char kInvalidIntentDispositionInPlatformApp[] =
397 "Invalid value for intents[*].disposition. Packaged apps cannot specify "
398 "a disposition";
399 const char kInvalidIntentHref[] =
400 "Invalid value for intents[*].href";
401 const char kInvalidIntentHrefEmpty[] =
402 "Missing value for intents[*].href";
403 const char kInvalidIntentHrefInPlatformApp[] =
404 "Invalid value for intents[*].href. Packaged apps cannot specify a "
405 "URL for intents";
406 const char kInvalidIntentHrefOldAndNewKey[] =
407 "intents[*]: Key \"*\" is deprecated. Key \"*\" has the same meaning. "
408 "You can not use both.";
409 const char kInvalidIntentPageInHostedApp[] =
410 "Invalid value for intents[*].href. Hosted apps must specify an "
411 "absolute URL within app.urls[].";
412 const char kInvalidIntents[] =
413 "Invalid value for intents";
414 const char kInvalidIntentType[] =
415 "Invalid value for intents[*].type";
416 const char kInvalidIntentTypeElement[] =
417 "Invalid value for intents[*].type[*]";
418 const char kInvalidIntentTitle[] =
419 "Invalid value for intents[*].title";
420 const char kInvalidIsolation[] =
421 "Invalid value for 'app.isolation'.";
422 const char kInvalidIsolationValue[] =
423 "Invalid value for 'app.isolation[*]'.";
424 const char kInvalidJs[] =
425 "Invalid value for 'content_scripts[*].js[*]'.";
426 const char kInvalidJsList[] =
427 "Required value 'content_scripts[*].js' is invalid.";
428 const char kInvalidKey[] =
429 "Value 'key' is missing or invalid.";
430 const char kInvalidKeyBinding[] =
431 "Invalid value for 'commands[*].*': *.";
432 const char kInvalidKeyBindingDescription[] =
433 "Invalid value for 'commands[*].description'.";
434 const char kInvalidKeyBindingDictionary[] =
435 "Contents of 'commands[*]' invalid.";
436 const char kInvalidKeyBindingMediaKeyWithModifier[] =
437 "Media key cannot have any modifier for 'commands[*].*': *.";
438 const char kInvalidKeyBindingMissingPlatform[] =
439 "Could not find key specification for 'command[*].*': Either specify a key "
440 "for '*', or specify a default key.";
441 const char kInvalidKeyBindingTooMany[] =
442 "Too many shortcuts specified for 'commands': The maximum is *.";
443 const char kInvalidKeyBindingUnknownPlatform[] =
444 "Unknown platform for 'command[*]': *. Valid values are: 'windows', 'mac'"
445 " 'chromeos', 'linux' and 'default'.";
446 const char kInvalidKioskEnabled[] =
447 "Invalid value for 'kiosk_enabled'.";
448 const char kInvalidKioskOnly[] =
449 "Invalid value for 'kiosk_only'.";
450 const char kInvalidKioskOnlyButNotEnabled[] =
451 "The 'kiosk_only' key is set, but 'kiosk_enabled' is not set.";
452 const char kInvalidLaunchContainer[] =
453 "Invalid value for 'app.launch.container'.";
454 const char kInvalidLaunchValue[] =
455 "Invalid value for '*'.";
456 const char kInvalidLaunchValueContainer[] =
457 "Invalid container type for '*'.";
458 const char kInvalidManifest[] =
459 "Manifest file is invalid.";
460 const char kInvalidManifestVersion[] =
461 "Invalid value for 'manifest_version'. Must be an integer greater than "
462 "zero.";
463 const char kInvalidManifestVersionOld[] =
464 "The 'manifest_version' key must be present and set to * (without quotes). "
465 "See developer.chrome.com/*/manifestVersion.html for details.";
466 const char kInvalidMatch[] =
467 "Invalid value for 'content_scripts[*].matches[*]': *";
468 const char kInvalidMatchCount[] =
469 "Invalid value for 'content_scripts[*].matches'. There must be at least "
470 "one match specified.";
471 const char kInvalidMatches[] =
472 "Required value 'content_scripts[*].matches' is missing or invalid.";
473 const char kInvalidMIMETypes[] =
474 "Invalid value for 'mime_types'";
475 const char kInvalidMimeTypesHandler[] =
476 "Invalid value for 'mime_types'.";
477 const char kInvalidMinimumChromeVersion[] =
478 "Invalid value for 'minimum_chrome_version'.";
479 const char kInvalidName[] =
480 "Required value 'name' is missing or invalid.";
481 const char kInvalidNaClModules[] =
482 "Invalid value for 'nacl_modules'.";
483 const char kInvalidNaClModulesPath[] =
484 "Invalid value for 'nacl_modules[*].path'.";
485 const char kInvalidNaClModulesMIMEType[] =
486 "Invalid value for 'nacl_modules[*].mime_type'.";
487 const char kInvalidOAuth2AutoApprove[] =
488 "Invalid value for 'oauth2.auto_approve'. Value must be true or false.";
489 const char kInvalidOAuth2ClientId[] =
490 "Invalid value for 'oauth2.client_id'.";
491 const char kInvalidOAuth2Scopes[] =
492 "Invalid value for 'oauth2.scopes'.";
493 const char kInvalidOfflineEnabled[] =
494 "Invalid value for 'offline_enabled'.";
495 const char kInvalidOmniboxKeyword[] =
496 "Invalid value for 'omnibox.keyword'.";
497 const char kInvalidOptionsPage[] =
498 "Invalid value for 'options_page'.";
499 const char kInvalidOptionsPageExpectUrlInPackage[] =
500 "Invalid value for 'options_page'. Value must be a relative path.";
501 const char kInvalidOptionsPageInHostedApp[] =
502 "Invalid value for 'options_page'. Hosted apps must specify an "
503 "absolute URL.";
504 const char kInvalidPageAction[] =
505 "Invalid value for 'page_action'.";
506 const char kInvalidPageActionDefaultTitle[] =
507 "Invalid value for 'default_title'.";
508 const char kInvalidPageActionIconPath[] =
509 "Invalid value for 'page_action.default_icon'.";
510 const char kInvalidPageActionId[] =
511 "Required value 'id' is missing or invalid.";
512 const char kInvalidPageActionName[] =
513 "Invalid value for 'page_action.name'.";
514 const char kInvalidPageActionOldAndNewKeys[] =
515 "Key \"*\" is deprecated. Key \"*\" has the same meaning. You can not "
516 "use both.";
517 const char kInvalidPageActionPopup[] =
518 "Invalid type for page action popup.";
519 const char kInvalidPageActionPopupPath[] =
520 "Invalid value for page action popup path [*].";
521 const char kInvalidPageActionsList[] =
522 "Invalid value for 'page_actions'.";
523 const char kInvalidPageActionsListSize[] =
524 "Invalid value for 'page_actions'. There can be at most one page action.";
525 const char kInvalidPageActionTypeValue[] =
526 "Invalid value for 'page_actions[*].type', expected 'tab' or 'permanent'.";
527 const char kInvalidPermissionWithDetail[] =
528 "Invalid value for 'permissions[*]': *.";
529 const char kInvalidPermission[] =
530 "Invalid value for 'permissions[*]'.";
531 const char kInvalidPermissions[] =
532 "Invalid value for 'permissions'.";
533 const char kInvalidPermissionScheme[] =
534 "Invalid scheme for 'permissions[*]'.";
535 const char kInvalidPlugins[] =
536 "Invalid value for 'plugins'.";
537 const char kInvalidPluginsPath[] =
538 "Invalid value for 'plugins[*].path'.";
539 const char kInvalidPluginsPublic[] =
540 "Invalid value for 'plugins[*].public'.";
541 const char kInvalidRequirement[] =
542 "Invalid value for requirement \"*\"";
543 const char kInvalidRequirements[] =
544 "Invalid value for 'requirements'";
545 const char kInvalidRunAt[] =
546 "Invalid value for 'content_scripts[*].run_at'.";
547 const char kInvalidSandboxedPagesList[] =
548 "Invalid value for 'sandbox.pages'.";
549 const char kInvalidSandboxedPage[] =
550 "Invalid value for 'sandbox.pages[*]'.";
551 const char kInvalidSandboxedPagesCSP[] =
552 "Invalid value for 'sandbox.content_security_policy'.";
553 const char kInvalidScriptBadge[] =
554 "Invalid value for 'script_badge'.";
555 const char kInvalidSearchEngineURL[] =
556 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'.";
557 const char kInvalidEmptySettingsOverrides[] =
558 "Empty dictionary for 'chrome_settings_overrides'.";
559 const char kInvalidShortName[] =
560 "Invalid value for 'short_name'.";
561 const char kInvalidSignature[] =
562 "Value 'signature' is missing or invalid.";
563 const char kInvalidSpellcheck[] =
564 "Invalid value for 'spellcheck'.";
565 const char kInvalidSpellcheckDictionaryFormat[] =
566 "Invalid value for spellcheck dictionary format.";
567 const char kInvalidSpellcheckDictionaryLanguage[] =
568 "Invalid value for spellcheck dictionary language.";
569 const char kInvalidSpellcheckDictionaryLocale[] =
570 "Invalid value for spellcheck dictionary locale.";
571 const char kInvalidSpellcheckDictionaryPath[] =
572 "Invalid value for spellcheck dictionary path.";
573 const char kInvalidStartupOverrideURL[] =
574 "Invalid value for overriding startup URL: '[*]'.";
575 const char kInvalidSystemIndicator[] =
576 "Invalid value for 'system_indicator'.";
577 const char kInvalidTheme[] =
578 "Invalid value for 'theme'.";
579 const char kInvalidThemeColors[] =
580 "Invalid value for theme colors - colors must be integers";
581 const char kInvalidThemeImages[] =
582 "Invalid value for theme images - images must be strings.";
583 const char kInvalidThemeImagesMissing[] =
584 "An image specified in the theme is missing.";
585 const char kInvalidThemeTints[] =
586 "Invalid value for theme images - tints must be decimal numbers.";
587 const char kInvalidTts[] =
588 "Invalid value for 'tts_engine'.";
589 const char kInvalidTtsVoices[] =
590 "Invalid value for 'tts_engine.voices'.";
591 const char kInvalidTtsVoicesEventTypes[] =
592 "Invalid value for 'tts_engine.voices[*].event_types'.";
593 const char kInvalidTtsVoicesGender[] =
594 "Invalid value for 'tts_engine.voices[*].gender'.";
595 const char kInvalidTtsVoicesLang[] =
596 "Invalid value for 'tts_engine.voices[*].lang'.";
597 const char kInvalidTtsVoicesRemote[] =
598 "Invalid value for 'tts_engine.voices[*].remote'.";
599 const char kInvalidTtsVoicesVoiceName[] =
600 "Invalid value for 'tts_engine.voices[*].voice_name'.";
601 const char kInvalidUpdateURL[] =
602 "Invalid value for update url: '[*]'.";
603 const char kInvalidURLHandlers[] =
604 "Invalid value for 'url_handlers'.";
605 const char kInvalidURLHandlerPatternElement[] =
606 "Invalid value for 'url_handlers[*]'.";
607 const char kInvalidURLHandlerTitle[] =
608 "Invalid value for 'url_handlers[*].title'.";
609 const char kInvalidURLHandlerPattern[] =
610 "Invalid value for 'url_handlers[*].matches[*]'.";
611 const char kInvalidURLPatternError[] =
612 "Invalid url pattern '*'";
613 const char kInvalidVersion[] =
614 "Required value 'version' is missing or invalid. It must be between 1-4 "
615 "dot-separated integers each between 0 and 65536.";
616 const char kInvalidWebAccessibleResourcesList[] =
617 "Invalid value for 'web_accessible_resources'.";
618 const char kInvalidWebAccessibleResource[] =
619 "Invalid value for 'web_accessible_resources[*]'.";
620 const char kInvalidWebview[] =
621 "Invalid value for 'webview'.";
622 const char kInvalidWebviewAccessibleResourcesList[] =
623 "Invalid value for'webview.accessible_resources'.";
624 const char kInvalidWebviewAccessibleResource[] =
625 "Invalid value for 'webview.accessible_resources[*]'.";
626 const char kInvalidWebviewPartition[] =
627 "Invalid value for 'webview.partitions[*]'.";
628 const char kInvalidWebviewPartitionName[] =
629 "Invalid value for 'webview.partitions[*].name'.";
630 const char kInvalidWebviewPartitionsList[] =
631 "Invalid value for 'webview.partitions'.";
632 const char kInvalidWebURL[] =
633 "Invalid value for 'app.urls[*]': *";
634 const char kInvalidWebURLs[] =
635 "Invalid value for 'app.urls'.";
636 const char kInvalidZipHash[] =
637 "Required key 'zip_hash' is missing or invalid.";
638 const char kInsecureContentSecurityPolicy[] =
639 "Invalid value for 'content_security_policy': Both 'script-src' and"
640 " 'object-src' directives must be specified (either explicitly, or"
641 " implicitly via 'default-src'), and both must whitelist only secure"
642 " resources. You may include any of the following sources: \"'self'\","
643 " \"'unsafe-eval'\", \"http://127.0.0.1\", \"http://localhost\", or any"
644 " \"https://\" or \"chrome-extension://\" origin. For more information,"
645 " see http://developer.chrome.com/extensions/contentSecurityPolicy.html";
646 const char kKeyIsDeprecatedWithReplacement[] =
647 "Key \"*\" is deprecated. Key \"*\" should be used instead.";
648 const char kLaunchPathAndExtentAreExclusive[] =
649 "The 'app.launch.local_path' and 'app.urls' keys cannot both be set.";
650 const char kLaunchPathAndURLAreExclusive[] =
651 "The 'app.launch.local_path' and 'app.launch.web_url' keys cannot "
652 "both be set.";
653 const char kLaunchURLRequired[] =
654 "Either 'app.launch.local_path' or 'app.launch.web_url' is required.";
655 const char kLocalesInvalidLocale[] =
656 "Invalid locale file '*': *";
657 const char kLocalesMessagesFileMissing[] =
658 "Messages file is missing for locale.";
659 const char kLocalesNoDefaultLocaleSpecified[] =
660 "Localization used, but default_locale wasn't specified in the manifest.";
661 const char kLocalesNoDefaultMessages[] =
662 "Default locale is defined but default data couldn't be loaded.";
663 const char kLocalesNoValidLocaleNamesListed[] =
664 "No valid locale name could be found in _locales directory.";
665 const char kLocalesTreeMissing[] =
666 "Default locale was specified, but _locales subtree is missing.";
667 const char kManifestParseError[] =
668 "Manifest is not valid JSON.";
669 const char kManifestUnreadable[] =
670 "Manifest file is missing or unreadable.";
671 const char kMissingFile[] =
672 "At least one js or css file is required for 'content_scripts[*]'.";
673 const char kMultipleOverrides[] =
674 "An extension cannot override more than one page.";
675 const char kNoPermissionForMIMETypes[] =
676 "The extension is not allowed to use mime_types key.";
677 const char kNoWildCardsInPaths[] =
678 "Wildcards are not allowed in extent URL pattern paths.";
679 const char kOneUISurfaceOnly[] =
680 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
681 const char kPermissionMustBeOptional[] =
682 "Permission '*' must be specified in the optional section of the manifest.";
683 const char kPermissionNotAllowed[] =
684 "Access to permission '*' denied.";
685 const char kPermissionNotAllowedInManifest[] =
686 "Permission '*' cannot be specified in the manifest.";
687 const char kPermissionUnknownOrMalformed[] =
688 "Permission '*' is unknown or URL pattern is malformed.";
689 const char kReservedMessageFound[] =
690 "Reserved key * found in message catalog.";
691 const char kScriptBadgeRequiresFlag[] =
692 "The script_badge manifest key is turned off by default. "
693 "You can enable it with the --enable-script-badges command-line flag.";
694 const char kScriptBadgeIconIgnored[] =
695 "default_icon specified in script_badge manifest section will not be used.";
696 const char kScriptBadgeTitleIgnored[] =
697 "default_title specified in script_badge manifest section will not be "
698 "used.";
699 const char kUnrecognizedManifestKey[] = "Unrecognized manifest key '*'.";
700 const char kUnrecognizedManifestProperty[] =
701 "Unrecognized property '*' of manifest key '*'.";
702 const char kWebRequestConflictsWithLazyBackground[] =
703 "The 'webRequest' API cannot be used with event pages.";
704 #if defined(OS_CHROMEOS)
705 const char kIllegalPlugins[] =
706 "Extensions cannot install plugins on Chrome OS";
707 #endif
709 } // namespace manifest_errors
711 } // namespace extensions