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

Side by Side Diff: extensions/common/manifest_constants.cc

Issue 178253007: Parse manifest file with app.service_worker.script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved test utils out of base Created 6 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 | Annotate | Revision Log
OLDNEW
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
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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 const char kInvalidSandboxedPagesList[] = 549 const char kInvalidSandboxedPagesList[] =
548 "Invalid value for 'sandbox.pages'."; 550 "Invalid value for 'sandbox.pages'.";
549 const char kInvalidSandboxedPage[] = 551 const char kInvalidSandboxedPage[] =
550 "Invalid value for 'sandbox.pages[*]'."; 552 "Invalid value for 'sandbox.pages[*]'.";
551 const char kInvalidSandboxedPagesCSP[] = 553 const char kInvalidSandboxedPagesCSP[] =
552 "Invalid value for 'sandbox.content_security_policy'."; 554 "Invalid value for 'sandbox.content_security_policy'.";
553 const char kInvalidScriptBadge[] = 555 const char kInvalidScriptBadge[] =
554 "Invalid value for 'script_badge'."; 556 "Invalid value for 'script_badge'.";
555 const char kInvalidSearchEngineURL[] = 557 const char kInvalidSearchEngineURL[] =
556 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'."; 558 "Invalid URL [*] for 'chrome_settings_overrides.search_provider'.";
559 const char kInvalidServiceWorkerScript[] =
560 "Invalid value for 'service_worker.script'.";
557 const char kInvalidEmptySettingsOverrides[] = 561 const char kInvalidEmptySettingsOverrides[] =
558 "Empty dictionary for 'chrome_settings_overrides'."; 562 "Empty dictionary for 'chrome_settings_overrides'.";
559 const char kInvalidShortName[] = 563 const char kInvalidShortName[] =
560 "Invalid value for 'short_name'."; 564 "Invalid value for 'short_name'.";
561 const char kInvalidSignature[] = 565 const char kInvalidSignature[] =
562 "Value 'signature' is missing or invalid."; 566 "Value 'signature' is missing or invalid.";
563 const char kInvalidSpellcheck[] = 567 const char kInvalidSpellcheck[] =
564 "Invalid value for 'spellcheck'."; 568 "Invalid value for 'spellcheck'.";
565 const char kInvalidSpellcheckDictionaryFormat[] = 569 const char kInvalidSpellcheckDictionaryFormat[] =
566 "Invalid value for spellcheck dictionary format."; 570 "Invalid value for spellcheck dictionary format.";
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 const char kReservedMessageFound[] = 693 const char kReservedMessageFound[] =
690 "Reserved key * found in message catalog."; 694 "Reserved key * found in message catalog.";
691 const char kScriptBadgeRequiresFlag[] = 695 const char kScriptBadgeRequiresFlag[] =
692 "The script_badge manifest key is turned off by default. " 696 "The script_badge manifest key is turned off by default. "
693 "You can enable it with the --enable-script-badges command-line flag."; 697 "You can enable it with the --enable-script-badges command-line flag.";
694 const char kScriptBadgeIconIgnored[] = 698 const char kScriptBadgeIconIgnored[] =
695 "default_icon specified in script_badge manifest section will not be used."; 699 "default_icon specified in script_badge manifest section will not be used.";
696 const char kScriptBadgeTitleIgnored[] = 700 const char kScriptBadgeTitleIgnored[] =
697 "default_title specified in script_badge manifest section will not be " 701 "default_title specified in script_badge manifest section will not be "
698 "used."; 702 "used.";
703 const char kServiceWorkerRequiresFlag[] =
704 "Service worker features require --enable-service-worker command-line "
705 "flag.";
699 const char kUnrecognizedManifestKey[] = "Unrecognized manifest key '*'."; 706 const char kUnrecognizedManifestKey[] = "Unrecognized manifest key '*'.";
700 const char kUnrecognizedManifestProperty[] = 707 const char kUnrecognizedManifestProperty[] =
701 "Unrecognized property '*' of manifest key '*'."; 708 "Unrecognized property '*' of manifest key '*'.";
702 const char kWebRequestConflictsWithLazyBackground[] = 709 const char kWebRequestConflictsWithLazyBackground[] =
703 "The 'webRequest' API cannot be used with event pages."; 710 "The 'webRequest' API cannot be used with event pages.";
704 #if defined(OS_CHROMEOS) 711 #if defined(OS_CHROMEOS)
705 const char kIllegalPlugins[] = 712 const char kIllegalPlugins[] =
706 "Extensions cannot install plugins on Chrome OS"; 713 "Extensions cannot install plugins on Chrome OS";
707 #endif 714 #endif
708 715
709 } // namespace manifest_errors 716 } // namespace manifest_errors
710 717
711 } // namespace extensions 718 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/common/manifest_handlers/background_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698