| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 | 13 |
| 14 // Keys used in JSON representation of extensions. | 14 // Keys used in JSON representation of extensions. |
| 15 namespace extension_manifest_keys { | 15 namespace extension_manifest_keys { |
| 16 extern const char* kAllFrames; | 16 extern const char kAllFrames[]; |
| 17 extern const char* kAltKey; | 17 extern const char kAltKey[]; |
| 18 extern const char* kApp; | 18 extern const char kApp[]; |
| 19 extern const char* kBackground; | 19 extern const char kBackground[]; |
| 20 extern const char* kBrowserAction; | 20 extern const char kBrowserAction[]; |
| 21 extern const char* kBrowseURLs; | 21 extern const char kBrowseURLs[]; |
| 22 extern const char* kChromeURLOverrides; | 22 extern const char kChromeURLOverrides[]; |
| 23 extern const char* kContentScripts; | 23 extern const char kContentScripts[]; |
| 24 extern const char* kContentSecurityPolicy; | 24 extern const char kContentSecurityPolicy[]; |
| 25 extern const char* kConvertedFromUserScript; | 25 extern const char kConvertedFromUserScript[]; |
| 26 extern const char* kCss; | 26 extern const char kCss[]; |
| 27 extern const char* kCtrlKey; | 27 extern const char kCtrlKey[]; |
| 28 extern const char* kCurrentLocale; | 28 extern const char kCurrentLocale[]; |
| 29 extern const char* kDefaultLocale; | 29 extern const char kDefaultLocale[]; |
| 30 extern const char* kDescription; | 30 extern const char kDescription[]; |
| 31 extern const char* kDevToolsPage; | 31 extern const char kDevToolsPage[]; |
| 32 extern const char* kExcludeGlobs; | 32 extern const char kExcludeGlobs[]; |
| 33 extern const char* kExcludeMatches; | 33 extern const char kExcludeMatches[]; |
| 34 extern const char* kFileFilters; | 34 extern const char kFileFilters[]; |
| 35 extern const char* kFileBrowserHandlers; | 35 extern const char kFileBrowserHandlers[]; |
| 36 extern const char* kHomepageURL; | 36 extern const char kHomepageURL[]; |
| 37 extern const char* kIcons; | 37 extern const char kIcons[]; |
| 38 extern const char* kId; | 38 extern const char kId[]; |
| 39 extern const char* kIncognito; | 39 extern const char kIncognito[]; |
| 40 extern const char* kIncludeGlobs; | 40 extern const char kIncludeGlobs[]; |
| 41 extern const char* kInputComponents; | 41 extern const char kInputComponents[]; |
| 42 extern const char* kIntents; | 42 extern const char kIntents[]; |
| 43 extern const char* kIntentType; | 43 extern const char kIntentType[]; |
| 44 extern const char* kIntentPath; | 44 extern const char kIntentPath[]; |
| 45 extern const char* kIntentTitle; | 45 extern const char kIntentTitle[]; |
| 46 extern const char* kIntentDisposition; | 46 extern const char kIntentDisposition[]; |
| 47 extern const char* kIsolation; | 47 extern const char kIsolation[]; |
| 48 extern const char* kJs; | 48 extern const char kJs[]; |
| 49 extern const char* kKeycode; | 49 extern const char kKeycode[]; |
| 50 extern const char* kLanguage; | 50 extern const char kLanguage[]; |
| 51 extern const char* kLaunch; | 51 extern const char kLaunch[]; |
| 52 extern const char* kLaunchContainer; | 52 extern const char kLaunchContainer[]; |
| 53 extern const char* kLaunchHeight; | 53 extern const char kLaunchHeight[]; |
| 54 extern const char* kLaunchLocalPath; | 54 extern const char kLaunchLocalPath[]; |
| 55 extern const char* kLaunchWebURL; | 55 extern const char kLaunchWebURL[]; |
| 56 extern const char* kLaunchWidth; | 56 extern const char kLaunchWidth[]; |
| 57 extern const char* kLayouts; | 57 extern const char kLayouts[]; |
| 58 extern const char* kManifestVersion; | 58 extern const char kManifestVersion[]; |
| 59 extern const char* kMatches; | 59 extern const char kMatches[]; |
| 60 extern const char* kMinimumChromeVersion; | 60 extern const char kMinimumChromeVersion[]; |
| 61 extern const char* kNaClModules; | 61 extern const char kNaClModules[]; |
| 62 extern const char* kNaClModulesMIMEType; | 62 extern const char kNaClModulesMIMEType[]; |
| 63 extern const char* kNaClModulesPath; | 63 extern const char kNaClModulesPath[]; |
| 64 extern const char* kName; | 64 extern const char kName[]; |
| 65 extern const char* kOfflineEnabled; | 65 extern const char kOfflineEnabled[]; |
| 66 extern const char* kOmnibox; | 66 extern const char kOmnibox[]; |
| 67 extern const char* kOmniboxKeyword; | 67 extern const char kOmniboxKeyword[]; |
| 68 extern const char* kOptionalPermissions; | 68 extern const char kOptionalPermissions[]; |
| 69 extern const char* kOptionsPage; | 69 extern const char kOptionsPage[]; |
| 70 extern const char* kPageAction; | 70 extern const char kPageAction[]; |
| 71 extern const char* kPageActionDefaultIcon; | 71 extern const char kPageActionDefaultIcon[]; |
| 72 extern const char* kPageActionDefaultPopup; | 72 extern const char kPageActionDefaultPopup[]; |
| 73 extern const char* kPageActionDefaultTitle; | 73 extern const char kPageActionDefaultTitle[]; |
| 74 extern const char* kPageActionIcons; | 74 extern const char kPageActionIcons[]; |
| 75 extern const char* kPageActionId; | 75 extern const char kPageActionId[]; |
| 76 extern const char* kPageActionPopup; | 76 extern const char kPageActionPopup[]; |
| 77 extern const char* kPageActionPopupHeight; | 77 extern const char kPageActionPopupHeight[]; |
| 78 extern const char* kPageActionPopupPath; | 78 extern const char kPageActionPopupPath[]; |
| 79 extern const char* kPageActions; | 79 extern const char kPageActions[]; |
| 80 extern const char* kPermissions; | 80 extern const char kPermissions[]; |
| 81 extern const char* kPlatformApp; | 81 extern const char kPlatformApp[]; |
| 82 extern const char* kPlugins; | 82 extern const char kPlugins[]; |
| 83 extern const char* kPluginsPath; | 83 extern const char kPluginsPath[]; |
| 84 extern const char* kPluginsPublic; | 84 extern const char kPluginsPublic[]; |
| 85 extern const char* kPublicKey; | 85 extern const char kPublicKey[]; |
| 86 extern const char* kRequirements; | 86 extern const char kRequirements[]; |
| 87 extern const char* kRunAt; | 87 extern const char kRunAt[]; |
| 88 extern const char* kShiftKey; | 88 extern const char kShiftKey[]; |
| 89 extern const char* kShortcutKey; | 89 extern const char kShortcutKey[]; |
| 90 extern const char* kSidebar; | 90 extern const char kSidebar[]; |
| 91 extern const char* kSidebarDefaultIcon; | 91 extern const char kSidebarDefaultIcon[]; |
| 92 extern const char* kSidebarDefaultPage; | 92 extern const char kSidebarDefaultPage[]; |
| 93 extern const char* kSidebarDefaultTitle; | 93 extern const char kSidebarDefaultTitle[]; |
| 94 extern const char* kSignature; | 94 extern const char kSignature[]; |
| 95 extern const char* kTheme; | 95 extern const char kTheme[]; |
| 96 extern const char* kThemeColors; | 96 extern const char kThemeColors[]; |
| 97 extern const char* kThemeDisplayProperties; | 97 extern const char kThemeDisplayProperties[]; |
| 98 extern const char* kThemeImages; | 98 extern const char kThemeImages[]; |
| 99 extern const char* kThemeTints; | 99 extern const char kThemeTints[]; |
| 100 extern const char* kTtsEngine; | 100 extern const char kTtsEngine[]; |
| 101 extern const char* kTtsGenderFemale; | 101 extern const char kTtsGenderFemale[]; |
| 102 extern const char* kTtsGenderMale; | 102 extern const char kTtsGenderMale[]; |
| 103 extern const char* kTtsVoices; | 103 extern const char kTtsVoices[]; |
| 104 extern const char* kTtsVoicesEventTypeEnd; | 104 extern const char kTtsVoicesEventTypeEnd[]; |
| 105 extern const char* kTtsVoicesEventTypeError; | 105 extern const char kTtsVoicesEventTypeError[]; |
| 106 extern const char* kTtsVoicesEventTypeMarker; | 106 extern const char kTtsVoicesEventTypeMarker[]; |
| 107 extern const char* kTtsVoicesEventTypeSentence; | 107 extern const char kTtsVoicesEventTypeSentence[]; |
| 108 extern const char* kTtsVoicesEventTypeStart; | 108 extern const char kTtsVoicesEventTypeStart[]; |
| 109 extern const char* kTtsVoicesEventTypeWord; | 109 extern const char kTtsVoicesEventTypeWord[]; |
| 110 extern const char* kTtsVoicesEventTypes; | 110 extern const char kTtsVoicesEventTypes[]; |
| 111 extern const char* kTtsVoicesGender; | 111 extern const char kTtsVoicesGender[]; |
| 112 extern const char* kTtsVoicesLang; | 112 extern const char kTtsVoicesLang[]; |
| 113 extern const char* kTtsVoicesVoiceName; | 113 extern const char kTtsVoicesVoiceName[]; |
| 114 extern const char* kType; | 114 extern const char kType[]; |
| 115 extern const char* kUpdateURL; | 115 extern const char kUpdateURL[]; |
| 116 extern const char* kVersion; | 116 extern const char kVersion[]; |
| 117 extern const char* kWebURLs; | 117 extern const char kWebURLs[]; |
| 118 } // namespace extension_manifest_keys | 118 } // namespace extension_manifest_keys |
| 119 | 119 |
| 120 // Some values expected in manifests. | 120 // Some values expected in manifests. |
| 121 namespace extension_manifest_values { | 121 namespace extension_manifest_values { |
| 122 extern const char* kIncognitoSplit; | 122 extern const char kIncognitoSplit[]; |
| 123 extern const char* kIncognitoSpanning; | 123 extern const char kIncognitoSpanning[]; |
| 124 extern const char* kIntentDispositionWindow; | 124 extern const char kIntentDispositionWindow[]; |
| 125 extern const char* kIntentDispositionInline; | 125 extern const char kIntentDispositionInline[]; |
| 126 extern const char* kIsolatedStorage; | 126 extern const char kIsolatedStorage[]; |
| 127 extern const char* kLaunchContainerPanel; | 127 extern const char kLaunchContainerPanel[]; |
| 128 extern const char* kLaunchContainerTab; | 128 extern const char kLaunchContainerTab[]; |
| 129 extern const char* kLaunchContainerWindow; | 129 extern const char kLaunchContainerWindow[]; |
| 130 extern const char* kPageActionTypePermanent; | 130 extern const char kPageActionTypePermanent[]; |
| 131 extern const char* kPageActionTypeTab; | 131 extern const char kPageActionTypeTab[]; |
| 132 extern const char* kRunAtDocumentEnd; | 132 extern const char kRunAtDocumentEnd[]; |
| 133 extern const char* kRunAtDocumentIdle; | 133 extern const char kRunAtDocumentIdle[]; |
| 134 extern const char* kRunAtDocumentStart; | 134 extern const char kRunAtDocumentStart[]; |
| 135 } // namespace extension_manifest_values | 135 } // namespace extension_manifest_values |
| 136 | 136 |
| 137 // Error messages returned from Extension::InitFromValue(). | 137 // Error messages returned from Extension::InitFromValue(). |
| 138 namespace extension_manifest_errors { | 138 namespace extension_manifest_errors { |
| 139 extern const char* kAppsNotEnabled; | 139 extern const char kAppsNotEnabled[]; |
| 140 extern const char* kBackgroundPermissionNeeded; | 140 extern const char kBackgroundPermissionNeeded[]; |
| 141 extern const char* kCannotAccessPage; | 141 extern const char kCannotAccessPage[]; |
| 142 extern const char* kCannotChangeExtensionID; | 142 extern const char kCannotChangeExtensionID[]; |
| 143 extern const char* kCannotClaimAllHostsInExtent; | 143 extern const char kCannotClaimAllHostsInExtent[]; |
| 144 extern const char* kCannotClaimAllURLsInExtent; | 144 extern const char kCannotClaimAllURLsInExtent[]; |
| 145 extern const char* kCannotScriptGallery; | 145 extern const char kCannotScriptGallery[]; |
| 146 extern const char* kCannotUninstallManagedExtension; | 146 extern const char kCannotUninstallManagedExtension[]; |
| 147 extern const char* kChromeVersionTooLow; | 147 extern const char kChromeVersionTooLow[]; |
| 148 extern const char* kDevToolsExperimental; | 148 extern const char kDevToolsExperimental[]; |
| 149 extern const char* kDisabledByPolicy; | 149 extern const char kDisabledByPolicy[]; |
| 150 extern const char* kExperimentalFlagRequired; | 150 extern const char kExperimentalFlagRequired[]; |
| 151 extern const char* kExpectString; | 151 extern const char kExpectString[]; |
| 152 extern const char* kHostedAppsCannotIncludeExtensionFeatures; | 152 extern const char kHostedAppsCannotIncludeExtensionFeatures[]; |
| 153 extern const char* kInvalidAllFrames; | 153 extern const char kInvalidAllFrames[]; |
| 154 extern const char* kInvalidBackground; | 154 extern const char kInvalidBackground[]; |
| 155 extern const char* kInvalidBackgroundInHostedApp; | 155 extern const char kInvalidBackgroundInHostedApp[]; |
| 156 extern const char* kInvalidBrowserAction; | 156 extern const char kInvalidBrowserAction[]; |
| 157 extern const char* kInvalidBrowseURL; | 157 extern const char kInvalidBrowseURL[]; |
| 158 extern const char* kInvalidBrowseURLs; | 158 extern const char kInvalidBrowseURLs[]; |
| 159 extern const char* kInvalidChromeURLOverrides; | 159 extern const char kInvalidChromeURLOverrides[]; |
| 160 extern const char* kInvalidContentScript; | 160 extern const char kInvalidContentScript[]; |
| 161 extern const char* kInvalidContentScriptsList; | 161 extern const char kInvalidContentScriptsList[]; |
| 162 extern const char* kInvalidContentSecurityPolicy; | 162 extern const char kInvalidContentSecurityPolicy[]; |
| 163 extern const char* kInvalidCss; | 163 extern const char kInvalidCss[]; |
| 164 extern const char* kInvalidCssList; | 164 extern const char kInvalidCssList[]; |
| 165 extern const char* kInvalidDefaultLocale; | 165 extern const char kInvalidDefaultLocale[]; |
| 166 extern const char* kInvalidDescription; | 166 extern const char kInvalidDescription[]; |
| 167 extern const char* kInvalidDevToolsPage; | 167 extern const char kInvalidDevToolsPage[]; |
| 168 extern const char* kInvalidExcludeMatch; | 168 extern const char kInvalidExcludeMatch[]; |
| 169 extern const char* kInvalidExcludeMatches; | 169 extern const char kInvalidExcludeMatches[]; |
| 170 extern const char* kInvalidFileBrowserHandler; | 170 extern const char kInvalidFileBrowserHandler[]; |
| 171 extern const char* kInvalidFileFiltersList; | 171 extern const char kInvalidFileFiltersList[]; |
| 172 extern const char* kInvalidFileFilterValue; | 172 extern const char kInvalidFileFilterValue[]; |
| 173 extern const char* kInvalidGlob; | 173 extern const char kInvalidGlob[]; |
| 174 extern const char* kInvalidGlobList; | 174 extern const char kInvalidGlobList[]; |
| 175 extern const char* kInvalidHomepageURL; | 175 extern const char kInvalidHomepageURL[]; |
| 176 extern const char* kInvalidIconPath; | 176 extern const char kInvalidIconPath[]; |
| 177 extern const char* kInvalidIcons; | 177 extern const char kInvalidIcons[]; |
| 178 extern const char* kInvalidIncognitoBehavior; | 178 extern const char kInvalidIncognitoBehavior[]; |
| 179 extern const char* kInvalidInputComponents; | 179 extern const char kInvalidInputComponents[]; |
| 180 extern const char* kInvalidInputComponentDescription; | 180 extern const char kInvalidInputComponentDescription[]; |
| 181 extern const char* kInvalidInputComponentLayoutName; | 181 extern const char kInvalidInputComponentLayoutName[]; |
| 182 extern const char* kInvalidInputComponentLayouts; | 182 extern const char kInvalidInputComponentLayouts[]; |
| 183 extern const char* kInvalidInputComponentName; | 183 extern const char kInvalidInputComponentName[]; |
| 184 extern const char* kInvalidInputComponentShortcutKey; | 184 extern const char kInvalidInputComponentShortcutKey[]; |
| 185 extern const char* kInvalidInputComponentShortcutKeycode; | 185 extern const char kInvalidInputComponentShortcutKeycode[]; |
| 186 extern const char* kInvalidInputComponentType; | 186 extern const char kInvalidInputComponentType[]; |
| 187 extern const char* kInvalidIntent; | 187 extern const char kInvalidIntent[]; |
| 188 extern const char* kInvalidIntentDisposition; | 188 extern const char kInvalidIntentDisposition[]; |
| 189 extern const char* kInvalidIntentPath; | 189 extern const char kInvalidIntentPath[]; |
| 190 extern const char* kInvalidIntents; | 190 extern const char kInvalidIntents[]; |
| 191 extern const char* kInvalidIntentType; | 191 extern const char kInvalidIntentType[]; |
| 192 extern const char* kInvalidIntentTitle; | 192 extern const char kInvalidIntentTitle[]; |
| 193 extern const char* kInvalidIsolation; | 193 extern const char kInvalidIsolation[]; |
| 194 extern const char* kInvalidIsolationValue; | 194 extern const char kInvalidIsolationValue[]; |
| 195 extern const char* kInvalidJs; | 195 extern const char kInvalidJs[]; |
| 196 extern const char* kInvalidJsList; | 196 extern const char kInvalidJsList[]; |
| 197 extern const char* kInvalidKey; | 197 extern const char kInvalidKey[]; |
| 198 extern const char* kInvalidLaunchContainer; | 198 extern const char kInvalidLaunchContainer[]; |
| 199 extern const char* kInvalidLaunchContainerForPlatform; | 199 extern const char kInvalidLaunchContainerForPlatform[]; |
| 200 extern const char* kInvalidLaunchHeight; | 200 extern const char kInvalidLaunchHeight[]; |
| 201 extern const char* kInvalidLaunchHeightContainer; | 201 extern const char kInvalidLaunchHeightContainer[]; |
| 202 extern const char* kInvalidLaunchLocalPath; | 202 extern const char kInvalidLaunchLocalPath[]; |
| 203 extern const char* kInvalidLaunchWebURL; | 203 extern const char kInvalidLaunchWebURL[]; |
| 204 extern const char* kInvalidLaunchWidth; | 204 extern const char kInvalidLaunchWidth[]; |
| 205 extern const char* kInvalidLaunchWidthContainer; | 205 extern const char kInvalidLaunchWidthContainer[]; |
| 206 extern const char* kInvalidManifest; | 206 extern const char kInvalidManifest[]; |
| 207 extern const char* kInvalidManifestVersion; | 207 extern const char kInvalidManifestVersion[]; |
| 208 extern const char* kInvalidMatch; | 208 extern const char kInvalidMatch[]; |
| 209 extern const char* kInvalidMatchCount; | 209 extern const char kInvalidMatchCount[]; |
| 210 extern const char* kInvalidMatches; | 210 extern const char kInvalidMatches[]; |
| 211 extern const char* kInvalidMinimumChromeVersion; | 211 extern const char kInvalidMinimumChromeVersion[]; |
| 212 extern const char* kInvalidNaClModules; | 212 extern const char kInvalidNaClModules[]; |
| 213 extern const char* kInvalidNaClModulesMIMEType; | 213 extern const char kInvalidNaClModulesMIMEType[]; |
| 214 extern const char* kInvalidNaClModulesPath; | 214 extern const char kInvalidNaClModulesPath[]; |
| 215 extern const char* kInvalidName; | 215 extern const char kInvalidName[]; |
| 216 extern const char* kInvalidOfflineEnabled; | 216 extern const char kInvalidOfflineEnabled[]; |
| 217 extern const char* kInvalidOmniboxKeyword; | 217 extern const char kInvalidOmniboxKeyword[]; |
| 218 extern const char* kInvalidOptionsPage; | 218 extern const char kInvalidOptionsPage[]; |
| 219 extern const char* kInvalidOptionsPageExpectUrlInPackage; | 219 extern const char kInvalidOptionsPageExpectUrlInPackage[]; |
| 220 extern const char* kInvalidOptionsPageInHostedApp; | 220 extern const char kInvalidOptionsPageInHostedApp[]; |
| 221 extern const char* kInvalidPageAction; | 221 extern const char kInvalidPageAction[]; |
| 222 extern const char* kInvalidPageActionDefaultTitle; | 222 extern const char kInvalidPageActionDefaultTitle[]; |
| 223 extern const char* kInvalidPageActionIconPath; | 223 extern const char kInvalidPageActionIconPath[]; |
| 224 extern const char* kInvalidPageActionId; | 224 extern const char kInvalidPageActionId[]; |
| 225 extern const char* kInvalidPageActionName; | 225 extern const char kInvalidPageActionName[]; |
| 226 extern const char* kInvalidPageActionOldAndNewKeys; | 226 extern const char kInvalidPageActionOldAndNewKeys[]; |
| 227 extern const char* kInvalidPageActionPopup; | 227 extern const char kInvalidPageActionPopup[]; |
| 228 extern const char* kInvalidPageActionPopupHeight; | 228 extern const char kInvalidPageActionPopupHeight[]; |
| 229 extern const char* kInvalidPageActionPopupPath; | 229 extern const char kInvalidPageActionPopupPath[]; |
| 230 extern const char* kInvalidPageActionsList; | 230 extern const char kInvalidPageActionsList[]; |
| 231 extern const char* kInvalidPageActionsListSize; | 231 extern const char kInvalidPageActionsListSize[]; |
| 232 extern const char* kInvalidPageActionTypeValue; | 232 extern const char kInvalidPageActionTypeValue[]; |
| 233 extern const char* kInvalidPermission; | 233 extern const char kInvalidPermission[]; |
| 234 extern const char* kInvalidPermissions; | 234 extern const char kInvalidPermissions[]; |
| 235 extern const char* kInvalidPermissionScheme; | 235 extern const char kInvalidPermissionScheme[]; |
| 236 extern const char* kInvalidPlugins; | 236 extern const char kInvalidPlugins[]; |
| 237 extern const char* kInvalidPluginsPath; | 237 extern const char kInvalidPluginsPath[]; |
| 238 extern const char* kInvalidPluginsPublic; | 238 extern const char kInvalidPluginsPublic[]; |
| 239 extern const char* kInvalidRequirement; | 239 extern const char kInvalidRequirement[]; |
| 240 extern const char* kInvalidRequirements; | 240 extern const char kInvalidRequirements[]; |
| 241 extern const char* kInvalidRunAt; | 241 extern const char kInvalidRunAt[]; |
| 242 extern const char* kInvalidSidebar; | 242 extern const char kInvalidSidebar[]; |
| 243 extern const char* kInvalidSidebarDefaultIconPath; | 243 extern const char kInvalidSidebarDefaultIconPath[]; |
| 244 extern const char* kInvalidSidebarDefaultPage; | 244 extern const char kInvalidSidebarDefaultPage[]; |
| 245 extern const char* kInvalidSidebarDefaultTitle; | 245 extern const char kInvalidSidebarDefaultTitle[]; |
| 246 extern const char* kInvalidSignature; | 246 extern const char kInvalidSignature[]; |
| 247 extern const char* kInvalidTheme; | 247 extern const char kInvalidTheme[]; |
| 248 extern const char* kInvalidThemeColors; | 248 extern const char kInvalidThemeColors[]; |
| 249 extern const char* kInvalidThemeImages; | 249 extern const char kInvalidThemeImages[]; |
| 250 extern const char* kInvalidThemeImagesMissing; | 250 extern const char kInvalidThemeImagesMissing[]; |
| 251 extern const char* kInvalidThemeTints; | 251 extern const char kInvalidThemeTints[]; |
| 252 extern const char* kInvalidTts; | 252 extern const char kInvalidTts[]; |
| 253 extern const char* kInvalidTtsVoices; | 253 extern const char kInvalidTtsVoices[]; |
| 254 extern const char* kInvalidTtsVoicesEventTypes; | 254 extern const char kInvalidTtsVoicesEventTypes[]; |
| 255 extern const char* kInvalidTtsVoicesGender; | 255 extern const char kInvalidTtsVoicesGender[]; |
| 256 extern const char* kInvalidTtsVoicesLang; | 256 extern const char kInvalidTtsVoicesLang[]; |
| 257 extern const char* kInvalidTtsVoicesVoiceName; | 257 extern const char kInvalidTtsVoicesVoiceName[]; |
| 258 extern const char* kInvalidUpdateURL; | 258 extern const char kInvalidUpdateURL[]; |
| 259 extern const char* kInvalidURLPatternError; | 259 extern const char kInvalidURLPatternError[]; |
| 260 extern const char* kInvalidVersion; | 260 extern const char kInvalidVersion[]; |
| 261 extern const char* kInvalidWebURL; | 261 extern const char kInvalidWebURL[]; |
| 262 extern const char* kInvalidWebURLs; | 262 extern const char kInvalidWebURLs[]; |
| 263 extern const char* kInvalidZipHash; | 263 extern const char kInvalidZipHash[]; |
| 264 extern const char* kLaunchPathAndExtentAreExclusive; | 264 extern const char kLaunchPathAndExtentAreExclusive[]; |
| 265 extern const char* kLaunchPathAndURLAreExclusive; | 265 extern const char kLaunchPathAndURLAreExclusive[]; |
| 266 extern const char* kLaunchURLRequired; | 266 extern const char kLaunchURLRequired[]; |
| 267 extern const char* kLocalesMessagesFileMissing; | 267 extern const char kLocalesMessagesFileMissing[]; |
| 268 extern const char* kLocalesNoDefaultLocaleSpecified; | 268 extern const char kLocalesNoDefaultLocaleSpecified[]; |
| 269 extern const char* kLocalesNoDefaultMessages; | 269 extern const char kLocalesNoDefaultMessages[]; |
| 270 extern const char* kLocalesNoValidLocaleNamesListed; | 270 extern const char kLocalesNoValidLocaleNamesListed[]; |
| 271 extern const char* kLocalesTreeMissing; | 271 extern const char kLocalesTreeMissing[]; |
| 272 extern const char* kManifestParseError; | 272 extern const char kManifestParseError[]; |
| 273 extern const char* kManifestUnreadable; | 273 extern const char kManifestUnreadable[]; |
| 274 extern const char* kMissingFile; | 274 extern const char kMissingFile[]; |
| 275 extern const char* kMultipleOverrides; | 275 extern const char kMultipleOverrides[]; |
| 276 extern const char* kNoWildCardsInPaths; | 276 extern const char kNoWildCardsInPaths[]; |
| 277 extern const char* kPermissionNotAllowed; | 277 extern const char kPermissionNotAllowed[]; |
| 278 extern const char* kOneUISurfaceOnly; | 278 extern const char kOneUISurfaceOnly[]; |
| 279 extern const char* kReservedMessageFound; | 279 extern const char kReservedMessageFound[]; |
| 280 extern const char* kSidebarExperimental; | 280 extern const char kSidebarExperimental[]; |
| 281 extern const char* kThemesCannotContainExtensions; | 281 extern const char kThemesCannotContainExtensions[]; |
| 282 extern const char* kWebContentMustBeEnabled; | 282 extern const char kWebContentMustBeEnabled[]; |
| 283 #if defined(OS_CHROMEOS) | 283 #if defined(OS_CHROMEOS) |
| 284 extern const char* kIllegalPlugins; | 284 extern const char kIllegalPlugins[]; |
| 285 #endif | 285 #endif |
| 286 } // namespace extension_manifest_errors | 286 } // namespace extension_manifest_errors |
| 287 | 287 |
| 288 namespace extension_urls { | 288 namespace extension_urls { |
| 289 // Returns the URL prefix for the extension/apps gallery. Can be set via the | 289 // Returns the URL prefix for the extension/apps gallery. Can be set via the |
| 290 // --apps-gallery-url switch. The URL returned will not contain a trailing | 290 // --apps-gallery-url switch. The URL returned will not contain a trailing |
| 291 // slash. Do not use this as a prefix/extent for the store. Instead see | 291 // slash. Do not use this as a prefix/extent for the store. Instead see |
| 292 // ExtensionService::GetWebStoreApp or | 292 // ExtensionService::GetWebStoreApp or |
| 293 // ExtensionService::IsDownloadFromGallery | 293 // ExtensionService::IsDownloadFromGallery |
| 294 std::string GetWebstoreLaunchURL(); | 294 std::string GetWebstoreLaunchURL(); |
| 295 | 295 |
| 296 // Returns the URL prefix for an item in the extension/app gallery. This URL | 296 // Returns the URL prefix for an item in the extension/app gallery. This URL |
| 297 // will contain a trailing slash and should be concatenated with an item ID | 297 // will contain a trailing slash and should be concatenated with an item ID |
| 298 // to get the item detail URL. | 298 // to get the item detail URL. |
| 299 std::string GetWebstoreItemDetailURLPrefix(); | 299 std::string GetWebstoreItemDetailURLPrefix(); |
| 300 | 300 |
| 301 // Returns the URL used to get webstore data (ratings, manifest, icon URL, | 301 // Returns the URL used to get webstore data (ratings, manifest, icon URL, |
| 302 // etc.) about an extension from the webstore as JSON. | 302 // etc.) about an extension from the webstore as JSON. |
| 303 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); | 303 GURL GetWebstoreItemJsonDataURL(const std::string& extension_id); |
| 304 | 304 |
| 305 // Return the update URL used by gallery/webstore extensions/apps. The | 305 // Return the update URL used by gallery/webstore extensions/apps. The |
| 306 // |secure| parameter will be ignored if the update URL is overriden with | 306 // |secure| parameter will be ignored if the update URL is overriden with |
| 307 // --apps-gallery-update-url. | 307 // --apps-gallery-update-url. |
| 308 GURL GetWebstoreUpdateUrl(bool secure); | 308 GURL GetWebstoreUpdateUrl(bool secure); |
| 309 | 309 |
| 310 // The greatest common prefixes of the main extensions gallery's browse and | 310 // The greatest common prefixes of the main extensions gallery's browse and |
| 311 // download URLs. | 311 // download URLs. |
| 312 extern const char* kGalleryBrowsePrefix; | 312 extern const char kGalleryBrowsePrefix[]; |
| 313 } // namespace extension_urls | 313 } // namespace extension_urls |
| 314 | 314 |
| 315 namespace extension_filenames { | 315 namespace extension_filenames { |
| 316 // The name of a temporary directory to install an extension into for | 316 // The name of a temporary directory to install an extension into for |
| 317 // validation before finalizing install. | 317 // validation before finalizing install. |
| 318 extern const char* kTempExtensionName; | 318 extern const char kTempExtensionName[]; |
| 319 | 319 |
| 320 // The file to write our decoded images to, relative to the extension_path. | 320 // The file to write our decoded images to, relative to the extension_path. |
| 321 extern const char* kDecodedImagesFilename; | 321 extern const char kDecodedImagesFilename[]; |
| 322 | 322 |
| 323 // The file to write our decoded message catalogs to, relative to the | 323 // The file to write our decoded message catalogs to, relative to the |
| 324 // extension_path. | 324 // extension_path. |
| 325 extern const char* kDecodedMessageCatalogsFilename; | 325 extern const char kDecodedMessageCatalogsFilename[]; |
| 326 } | 326 } |
| 327 | 327 |
| 328 namespace extension_misc { | 328 namespace extension_misc { |
| 329 const int kUnknownWindowId = -1; | 329 const int kUnknownWindowId = -1; |
| 330 | 330 |
| 331 // The extension id of the bookmark manager. | 331 // The extension id of the bookmark manager. |
| 332 extern const char* kBookmarkManagerId; | 332 extern const char kBookmarkManagerId[]; |
| 333 | 333 |
| 334 // The extension id of the Web Store component application. | 334 // The extension id of the Web Store component application. |
| 335 extern const char* kWebStoreAppId; | 335 extern const char kWebStoreAppId[]; |
| 336 | 336 |
| 337 // The extension id of the Cloud Print component application. | 337 // The extension id of the Cloud Print component application. |
| 338 extern const char* kCloudPrintAppId; | 338 extern const char kCloudPrintAppId[]; |
| 339 | 339 |
| 340 // Note: this structure is an ASN.1 which encodes the algorithm used | 340 // Note: this structure is an ASN.1 which encodes the algorithm used |
| 341 // with its parameters. This is defined in PKCS #1 v2.1 (RFC 3447). | 341 // with its parameters. This is defined in PKCS #1 v2.1 (RFC 3447). |
| 342 // It is encoding: { OID sha1WithRSAEncryption PARAMETERS NULL } | 342 // It is encoding: { OID sha1WithRSAEncryption PARAMETERS NULL } |
| 343 const uint8 kSignatureAlgorithm[15] = { | 343 const uint8 kSignatureAlgorithm[15] = { |
| 344 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, | 344 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, |
| 345 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00 | 345 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00 |
| 346 }; | 346 }; |
| 347 | 347 |
| 348 // Don't remove items or change the order of this enum. It's used in | 348 // Don't remove items or change the order of this enum. It's used in |
| 349 // histograms and preferences. | 349 // histograms and preferences. |
| 350 enum LaunchContainer { | 350 enum LaunchContainer { |
| 351 LAUNCH_WINDOW, | 351 LAUNCH_WINDOW, |
| 352 LAUNCH_PANEL, | 352 LAUNCH_PANEL, |
| 353 LAUNCH_TAB | 353 LAUNCH_TAB |
| 354 }; | 354 }; |
| 355 | 355 |
| 356 // The name of the apps promo histogram. | 356 // The name of the apps promo histogram. |
| 357 extern const char* kAppsPromoHistogram; | 357 extern const char kAppsPromoHistogram[]; |
| 358 | 358 |
| 359 // The buckets used in the apps promo histogram. | 359 // The buckets used in the apps promo histogram. |
| 360 enum AppsPromoBuckets { | 360 enum AppsPromoBuckets { |
| 361 PROMO_LAUNCH_APP, | 361 PROMO_LAUNCH_APP, |
| 362 PROMO_LAUNCH_WEB_STORE, | 362 PROMO_LAUNCH_WEB_STORE, |
| 363 PROMO_CLOSE, | 363 PROMO_CLOSE, |
| 364 PROMO_EXPIRE, | 364 PROMO_EXPIRE, |
| 365 PROMO_SEEN, | 365 PROMO_SEEN, |
| 366 PROMO_BUCKET_BOUNDARY | 366 PROMO_BUCKET_BOUNDARY |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 // The name of the app launch histogram. | 369 // The name of the app launch histogram. |
| 370 extern const char* kAppLaunchHistogram; | 370 extern const char kAppLaunchHistogram[]; |
| 371 | 371 |
| 372 // The buckets used for app launches. | 372 // The buckets used for app launches. |
| 373 enum AppLaunchBucket { | 373 enum AppLaunchBucket { |
| 374 // Launch from NTP apps section while maximized. | 374 // Launch from NTP apps section while maximized. |
| 375 APP_LAUNCH_NTP_APPS_MAXIMIZED, | 375 APP_LAUNCH_NTP_APPS_MAXIMIZED, |
| 376 | 376 |
| 377 // Launch from NTP apps section while collapsed. | 377 // Launch from NTP apps section while collapsed. |
| 378 APP_LAUNCH_NTP_APPS_COLLAPSED, | 378 APP_LAUNCH_NTP_APPS_COLLAPSED, |
| 379 | 379 |
| 380 // Launch from NTP apps section while in menu mode. | 380 // Launch from NTP apps section while in menu mode. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 // feature that let you make desktop shortcuts from the file menu. | 427 // feature that let you make desktop shortcuts from the file menu. |
| 428 APP_LAUNCH_CMD_LINE_APP_LEGACY, | 428 APP_LAUNCH_CMD_LINE_APP_LEGACY, |
| 429 | 429 |
| 430 APP_LAUNCH_BUCKET_BOUNDARY, | 430 APP_LAUNCH_BUCKET_BOUNDARY, |
| 431 APP_LAUNCH_BUCKET_INVALID | 431 APP_LAUNCH_BUCKET_INVALID |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 #if defined(OS_CHROMEOS) | 434 #if defined(OS_CHROMEOS) |
| 435 // The directory path on a ChromeOS device where accessibility extensions are | 435 // The directory path on a ChromeOS device where accessibility extensions are |
| 436 // stored. | 436 // stored. |
| 437 extern const char* kAccessExtensionPath; | 437 extern const char kAccessExtensionPath[]; |
| 438 extern const char* kChromeVoxDirectoryName; | 438 extern const char kChromeVoxDirectoryName[]; |
| 439 #endif | 439 #endif |
| 440 | 440 |
| 441 // What causes an extension to be installed? Used in histograms, so don't | 441 // What causes an extension to be installed? Used in histograms, so don't |
| 442 // change existing values. | 442 // change existing values. |
| 443 enum CrxInstallCause { | 443 enum CrxInstallCause { |
| 444 INSTALL_CAUSE_UNSET = 0, | 444 INSTALL_CAUSE_UNSET = 0, |
| 445 INSTALL_CAUSE_USER_DOWNLOAD, | 445 INSTALL_CAUSE_USER_DOWNLOAD, |
| 446 INSTALL_CAUSE_UPDATE, | 446 INSTALL_CAUSE_UPDATE, |
| 447 INSTALL_CAUSE_EXTERNAL_FILE, | 447 INSTALL_CAUSE_EXTERNAL_FILE, |
| 448 INSTALL_CAUSE_AUTOMATION, | 448 INSTALL_CAUSE_AUTOMATION, |
| 449 NUM_INSTALL_CAUSES | 449 NUM_INSTALL_CAUSES |
| 450 }; | 450 }; |
| 451 | 451 |
| 452 enum UnloadedExtensionReason { | 452 enum UnloadedExtensionReason { |
| 453 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 453 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
| 454 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 454 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
| 455 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 455 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
| 456 UNLOAD_REASON_TERMINATE, // Extension has terminated. | 456 UNLOAD_REASON_TERMINATE, // Extension has terminated. |
| 457 }; | 457 }; |
| 458 } // extension_misc | 458 } // extension_misc |
| 459 | 459 |
| 460 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 460 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| OLD | NEW |