summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_constants.cc
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-02 18:06:53 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-02 18:06:53 +0000
commit7b54ca0d914878f39e784bc4fd2046286817b319 (patch)
treeec2dd9a2d387b70105b676ccbff7588ce6b57db9 /chrome/common/extensions/extension_constants.cc
parentc503402a1b3b3f0592e08281de6053f34147fd77 (diff)
downloadchromium_src-7b54ca0d914878f39e784bc4fd2046286817b319.zip
chromium_src-7b54ca0d914878f39e784bc4fd2046286817b319.tar.gz
chromium_src-7b54ca0d914878f39e784bc4fd2046286817b319.tar.bz2
Allow apps with background pages to request process-per-app-instance.
Requires setting background.allow_js_access to false in manifest. BUG=113444 TEST=Example hosted app has different processes in different tabs. Review URL: http://codereview.chromium.org/9508008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_constants.cc')
-rw-r--r--chrome/common/extensions/extension_constants.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
index c50c2e5..868dc3c 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -16,10 +16,11 @@ const char kAllFrames[] = "all_frames";
const char kAltKey[] = "altKey";
const char kApp[] = "app";
const char kBackground[] = "background";
+const char kBackgroundAllowJsAccess[] = "background.allow_js_access";
const char kBackgroundPage[] = "background.page";
const char kBackgroundPageLegacy[] = "background_page";
-const char kBackgroundScripts[] = "background.scripts";
const char kBackgroundPersistent[] = "background.persistent";
+const char kBackgroundScripts[] = "background.scripts";
const char kBrowserAction[] = "browser_action";
const char kChromeURLOverrides[] = "chrome_url_overrides";
const char kCommands[] = "commands";
@@ -179,6 +180,11 @@ const char kInvalidAllFrames[] =
"Invalid value for 'content_scripts[*].all_frames'.";
const char kInvalidBackground[] =
"Invalid value for 'background_page'.";
+const char kInvalidBackgroundAllowJsAccess[] =
+ "Invalid value for 'background.allow_js_access'.";
+const char kInvalidBackgroundAllowJsAccessNoPage[] =
+ "Must specify one of background.page or background.scripts to use"
+ " background.allow_js_access.";
const char kInvalidBackgroundCombination[] =
"The background.page and background.scripts properties cannot be used at "
"the same time.";