Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: chrome/common/extensions/extension_manifest_constants.cc

Issue 12381035: Move Mime type handling to streamsPrivate API, so that it works on Desktop Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize test variable Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const char kLaunchMaxHeight[] = "app.launch.max_height"; 64 const char kLaunchMaxHeight[] = "app.launch.max_height";
65 const char kLaunchMaxWidth[] = "app.launch.max_width"; 65 const char kLaunchMaxWidth[] = "app.launch.max_width";
66 const char kLaunchMinHeight[] = "app.launch.min_height"; 66 const char kLaunchMinHeight[] = "app.launch.min_height";
67 const char kLaunchMinWidth[] = "app.launch.min_width"; 67 const char kLaunchMinWidth[] = "app.launch.min_width";
68 const char kLaunchWidth[] = "app.launch.width"; 68 const char kLaunchWidth[] = "app.launch.width";
69 const char kLayouts[] = "layouts"; 69 const char kLayouts[] = "layouts";
70 const char kManifestVersion[] = "manifest_version"; 70 const char kManifestVersion[] = "manifest_version";
71 const char kMatches[] = "matches"; 71 const char kMatches[] = "matches";
72 const char kMinimumChromeVersion[] = "minimum_chrome_version"; 72 const char kMinimumChromeVersion[] = "minimum_chrome_version";
73 const char kMIMETypes[] = "mime_types"; 73 const char kMIMETypes[] = "mime_types";
74 const char kMimeTypesHandler[] = "mime_types_handler";
74 const char kName[] = "name"; 75 const char kName[] = "name";
75 const char kNaClModules[] = "nacl_modules"; 76 const char kNaClModules[] = "nacl_modules";
76 const char kNaClModulesMIMEType[] = "mime_type"; 77 const char kNaClModulesMIMEType[] = "mime_type";
77 const char kNaClModulesPath[] = "path"; 78 const char kNaClModulesPath[] = "path";
78 const char kOAuth2[] = "oauth2"; 79 const char kOAuth2[] = "oauth2";
79 const char kOAuth2ClientId[] = "oauth2.client_id"; 80 const char kOAuth2ClientId[] = "oauth2.client_id";
80 const char kOAuth2Scopes[] = "oauth2.scopes"; 81 const char kOAuth2Scopes[] = "oauth2.scopes";
81 const char kOfflineEnabled[] = "offline_enabled"; 82 const char kOfflineEnabled[] = "offline_enabled";
82 const char kOmnibox[] = "omnibox"; 83 const char kOmnibox[] = "omnibox";
83 const char kOmniboxKeyword[] = "omnibox.keyword"; 84 const char kOmniboxKeyword[] = "omnibox.keyword";
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 const char kInvalidExcludeMatch[] = 250 const char kInvalidExcludeMatch[] =
250 "Invalid value for 'content_scripts[*].exclude_matches[*]': *"; 251 "Invalid value for 'content_scripts[*].exclude_matches[*]': *";
251 const char kInvalidExcludeMatches[] = 252 const char kInvalidExcludeMatches[] =
252 "Invalid value for 'content_scripts[*].exclude_matches'."; 253 "Invalid value for 'content_scripts[*].exclude_matches'.";
253 const char kInvalidFileAccessList[] = 254 const char kInvalidFileAccessList[] =
254 "Invalid value for 'file_access'."; 255 "Invalid value for 'file_access'.";
255 const char kInvalidFileAccessValue[] = 256 const char kInvalidFileAccessValue[] =
256 "Invalid value for 'file_access[*]'."; 257 "Invalid value for 'file_access[*]'.";
257 const char kInvalidFileBrowserHandler[] = 258 const char kInvalidFileBrowserHandler[] =
258 "Invalid value for 'file_browser_handlers'."; 259 "Invalid value for 'file_browser_handlers'.";
259 const char kInvalidFileBrowserHandlerMIMETypes[] =
260 "Invalid value for 'file_browser_handlers.mime_types'";
261 const char kInvalidFileFiltersList[] = 260 const char kInvalidFileFiltersList[] =
262 "Invalid value for 'file_filters'."; 261 "Invalid value for 'file_filters'.";
263 const char kInvalidFileFilterValue[] = 262 const char kInvalidFileFilterValue[] =
264 "Invalid value for 'file_filters[*]'."; 263 "Invalid value for 'file_filters[*]'.";
265 const char kInvalidFileHandlers[] = 264 const char kInvalidFileHandlers[] =
266 "Invalid value for 'file_handlers'."; 265 "Invalid value for 'file_handlers'.";
267 const char kInvalidFileHandlerTitle[] = 266 const char kInvalidFileHandlerTitle[] =
268 "Invalid value for 'file_handlers[*].title'."; 267 "Invalid value for 'file_handlers[*].title'.";
269 const char kInvalidFileHandlerType[] = 268 const char kInvalidFileHandlerType[] =
270 "Invalid value for 'file_handlers[*].type'."; 269 "Invalid value for 'file_handlers[*].type'.";
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 const char kInvalidManifestVersionOld[] = 366 const char kInvalidManifestVersionOld[] =
368 "The 'manifest_version' key must be present and set to * (without quotes). " 367 "The 'manifest_version' key must be present and set to * (without quotes). "
369 "See developer.chrome.com/extensions/manifestVersion.html for details."; 368 "See developer.chrome.com/extensions/manifestVersion.html for details.";
370 const char kInvalidMatch[] = 369 const char kInvalidMatch[] =
371 "Invalid value for 'content_scripts[*].matches[*]': *"; 370 "Invalid value for 'content_scripts[*].matches[*]': *";
372 const char kInvalidMatchCount[] = 371 const char kInvalidMatchCount[] =
373 "Invalid value for 'content_scripts[*].matches'. There must be at least " 372 "Invalid value for 'content_scripts[*].matches'. There must be at least "
374 "one match specified."; 373 "one match specified.";
375 const char kInvalidMatches[] = 374 const char kInvalidMatches[] =
376 "Required value 'content_scripts[*].matches' is missing or invalid."; 375 "Required value 'content_scripts[*].matches' is missing or invalid.";
376 const char kInvalidMIMETypes[] =
377 "Invalid value for 'mime_types'";
378 const char kInvalidMimeTypesHandler[] =
379 "Invalid value for 'mime_types'.";
377 const char kInvalidMinimumChromeVersion[] = 380 const char kInvalidMinimumChromeVersion[] =
378 "Invalid value for 'minimum_chrome_version'."; 381 "Invalid value for 'minimum_chrome_version'.";
379 const char kInvalidName[] = 382 const char kInvalidName[] =
380 "Required value 'name' is missing or invalid."; 383 "Required value 'name' is missing or invalid.";
381 const char kInvalidNaClModules[] = 384 const char kInvalidNaClModules[] =
382 "Invalid value for 'nacl_modules'."; 385 "Invalid value for 'nacl_modules'.";
383 const char kInvalidNaClModulesPath[] = 386 const char kInvalidNaClModulesPath[] =
384 "Invalid value for 'nacl_modules[*].path'."; 387 "Invalid value for 'nacl_modules[*].path'.";
385 const char kInvalidNaClModulesMIMEType[] = 388 const char kInvalidNaClModulesMIMEType[] =
386 "Invalid value for 'nacl_modules[*].mime_type'."; 389 "Invalid value for 'nacl_modules[*].mime_type'.";
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 const char kLocalesTreeMissing[] = 522 const char kLocalesTreeMissing[] =
520 "Default locale was specified, but _locales subtree is missing."; 523 "Default locale was specified, but _locales subtree is missing.";
521 const char kManifestParseError[] = 524 const char kManifestParseError[] =
522 "Manifest is not valid JSON."; 525 "Manifest is not valid JSON.";
523 const char kManifestUnreadable[] = 526 const char kManifestUnreadable[] =
524 "Manifest file is missing or unreadable."; 527 "Manifest file is missing or unreadable.";
525 const char kMissingFile[] = 528 const char kMissingFile[] =
526 "At least one js or css file is required for 'content_scripts[*]'."; 529 "At least one js or css file is required for 'content_scripts[*]'.";
527 const char kMultipleOverrides[] = 530 const char kMultipleOverrides[] =
528 "An extension cannot override more than one page."; 531 "An extension cannot override more than one page.";
529 const char kNoPermissionForFileBrowserHandlerMIMETypes[] = 532 const char kNoPermissionForMIMETypes[] =
530 "The extension is not allowed to use file_browser_handlers.mime_types key."; 533 "The extension is not allowed to use mime_types key.";
531 const char kNoWildCardsInPaths[] = 534 const char kNoWildCardsInPaths[] =
532 "Wildcards are not allowed in extent URL pattern paths."; 535 "Wildcards are not allowed in extent URL pattern paths.";
533 const char kOneUISurfaceOnly[] = 536 const char kOneUISurfaceOnly[] =
534 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; 537 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
535 const char kPermissionMustBeOptional[] = 538 const char kPermissionMustBeOptional[] =
536 "Permission '*' must be specified in the optional section of the manifest."; 539 "Permission '*' must be specified in the optional section of the manifest.";
537 const char kPermissionNotAllowed[] = 540 const char kPermissionNotAllowed[] =
538 "Access to permission '*' denied."; 541 "Access to permission '*' denied.";
539 const char kPermissionNotAllowedInManifest[] = 542 const char kPermissionNotAllowedInManifest[] =
540 "Permission '*' cannot be specified in the manifest."; 543 "Permission '*' cannot be specified in the manifest.";
541 const char kPlatformAppNeedsManifestVersion2[] = 544 const char kPlatformAppNeedsManifestVersion2[] =
542 "Packaged apps need manifest_version set to >= 2"; 545 "Packaged apps need manifest_version set to >= 2";
543 const char kReservedMessageFound[] = 546 const char kReservedMessageFound[] =
544 "Reserved key * found in message catalog."; 547 "Reserved key * found in message catalog.";
545 const char kScriptBadgeRequiresFlag[] = 548 const char kScriptBadgeRequiresFlag[] =
546 "The script_badge manifest key is turned off by default. " 549 "The script_badge manifest key is turned off by default. "
547 "You can enable it with the --enable-script-badges command-line flag."; 550 "You can enable it with the --enable-script-badges command-line flag.";
548 const char kScriptBadgeIconIgnored[] = 551 const char kScriptBadgeIconIgnored[] =
549 "default_icon specified in script_badge manifest section will not be used."; 552 "default_icon specified in script_badge manifest section will not be used.";
550 const char kScriptBadgeTitleIgnored[] = 553 const char kScriptBadgeTitleIgnored[] =
551 "default_title specified in script_badge manifest section will not be " 554 "default_title specified in script_badge manifest section will not be "
552 "used."; 555 "used.";
553 const char kWebRequestConflictsWithLazyBackground[] = 556 const char kWebRequestConflictsWithLazyBackground[] =
554 "The 'webRequest' API cannot be used with event pages."; 557 "The 'webRequest' API cannot be used with event pages.";
555 #if defined(OS_CHROMEOS) 558 #if defined(OS_CHROMEOS)
556 const char kIllegalPlugins[] = 559 const char kIllegalPlugins[] =
557 "Extensions cannot install plugins on Chrome OS"; 560 "Extensions cannot install plugins on Chrome OS";
558 #endif 561 #endif
559 } // namespace extension_manifest_errors 562 } // namespace extension_manifest_errors
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_manifest_constants.h ('k') | chrome/common/extensions/mime_types_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698