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

Side by Side Diff: chrome/common/extensions/extension_constants.h

Issue 9150008: Introduce background.scripts feature for extension manifests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready to land Created 8 years, 11 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
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 kBackgroundPage[]; 20 extern const char kBackgroundPage[];
21 extern const char kBackgroundPageLegacy[]; 21 extern const char kBackgroundPageLegacy[];
22 extern const char kBackgroundScripts[];
22 extern const char kBrowserAction[]; 23 extern const char kBrowserAction[];
23 extern const char kBrowseURLs[]; 24 extern const char kBrowseURLs[];
24 extern const char kChromeURLOverrides[]; 25 extern const char kChromeURLOverrides[];
25 extern const char kContentScripts[]; 26 extern const char kContentScripts[];
26 extern const char kContentSecurityPolicy[]; 27 extern const char kContentSecurityPolicy[];
27 extern const char kConvertedFromUserScript[]; 28 extern const char kConvertedFromUserScript[];
28 extern const char kCss[]; 29 extern const char kCss[];
29 extern const char kCtrlKey[]; 30 extern const char kCtrlKey[];
30 extern const char kCurrentLocale[]; 31 extern const char kCurrentLocale[];
31 extern const char kDefaultLocale[]; 32 extern const char kDefaultLocale[];
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 extern const char kCannotScriptGallery[]; 145 extern const char kCannotScriptGallery[];
145 extern const char kCannotUninstallManagedExtension[]; 146 extern const char kCannotUninstallManagedExtension[];
146 extern const char kChromeVersionTooLow[]; 147 extern const char kChromeVersionTooLow[];
147 extern const char kDevToolsExperimental[]; 148 extern const char kDevToolsExperimental[];
148 extern const char kDisabledByPolicy[]; 149 extern const char kDisabledByPolicy[];
149 extern const char kExperimentalFlagRequired[]; 150 extern const char kExperimentalFlagRequired[];
150 extern const char kExpectString[]; 151 extern const char kExpectString[];
151 extern const char kFeatureNotAllowed[]; 152 extern const char kFeatureNotAllowed[];
152 extern const char kInvalidAllFrames[]; 153 extern const char kInvalidAllFrames[];
153 extern const char kInvalidBackground[]; 154 extern const char kInvalidBackground[];
155 extern const char kInvalidBackgroundCombination[];
156 extern const char kInvalidBackgroundScript[];
157 extern const char kInvalidBackgroundScripts[];
154 extern const char kInvalidBackgroundInHostedApp[]; 158 extern const char kInvalidBackgroundInHostedApp[];
155 extern const char kInvalidBrowserAction[]; 159 extern const char kInvalidBrowserAction[];
156 extern const char kInvalidBrowseURL[]; 160 extern const char kInvalidBrowseURL[];
157 extern const char kInvalidBrowseURLs[]; 161 extern const char kInvalidBrowseURLs[];
158 extern const char kInvalidChromeURLOverrides[]; 162 extern const char kInvalidChromeURLOverrides[];
159 extern const char kInvalidContentScript[]; 163 extern const char kInvalidContentScript[];
160 extern const char kInvalidContentScriptsList[]; 164 extern const char kInvalidContentScriptsList[];
161 extern const char kInvalidContentSecurityPolicy[]; 165 extern const char kInvalidContentSecurityPolicy[];
162 extern const char kInvalidCss[]; 166 extern const char kInvalidCss[];
163 extern const char kInvalidCssList[]; 167 extern const char kInvalidCssList[];
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // The name of a temporary directory to install an extension into for 322 // The name of a temporary directory to install an extension into for
319 // validation before finalizing install. 323 // validation before finalizing install.
320 extern const char kTempExtensionName[]; 324 extern const char kTempExtensionName[];
321 325
322 // The file to write our decoded images to, relative to the extension_path. 326 // The file to write our decoded images to, relative to the extension_path.
323 extern const char kDecodedImagesFilename[]; 327 extern const char kDecodedImagesFilename[];
324 328
325 // The file to write our decoded message catalogs to, relative to the 329 // The file to write our decoded message catalogs to, relative to the
326 // extension_path. 330 // extension_path.
327 extern const char kDecodedMessageCatalogsFilename[]; 331 extern const char kDecodedMessageCatalogsFilename[];
332
333 // The filename to use for a background page generated from
334 // background.scripts.
335 extern const char kGeneratedBackgroundPageFilename[];
328 } 336 }
329 337
330 namespace extension_misc { 338 namespace extension_misc {
331 const int kUnknownWindowId = -1; 339 const int kUnknownWindowId = -1;
332 340
333 // The extension id of the bookmark manager. 341 // The extension id of the bookmark manager.
334 extern const char kBookmarkManagerId[]; 342 extern const char kBookmarkManagerId[];
335 343
336 // The extension id of the Web Store component application. 344 // The extension id of the Web Store component application.
337 extern const char kWebStoreAppId[]; 345 extern const char kWebStoreAppId[];
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 462
455 enum UnloadedExtensionReason { 463 enum UnloadedExtensionReason {
456 UNLOAD_REASON_DISABLE, // Extension is being disabled. 464 UNLOAD_REASON_DISABLE, // Extension is being disabled.
457 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. 465 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version.
458 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. 466 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled.
459 UNLOAD_REASON_TERMINATE, // Extension has terminated. 467 UNLOAD_REASON_TERMINATE, // Extension has terminated.
460 }; 468 };
461 } // extension_misc 469 } // extension_misc
462 470
463 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ 471 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698