summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_set.h
diff options
context:
space:
mode:
authoradriansc@google.com <adriansc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 21:46:11 +0000
committeradriansc@google.com <adriansc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 21:46:11 +0000
commitf8cc62e64f6c43deb5973cadecf74e63d7162410 (patch)
tree022aeec91c32e1fc42ccf2a40336b1735ef88129 /chrome/common/extensions/extension_set.h
parentd8214f5e1cde6f9ded0ae6a749208c33dc3bf2be (diff)
downloadchromium_src-f8cc62e64f6c43deb5973cadecf74e63d7162410.zip
chromium_src-f8cc62e64f6c43deb5973cadecf74e63d7162410.tar.gz
chromium_src-f8cc62e64f6c43deb5973cadecf74e63d7162410.tar.bz2
Added code for localizing scripts CSS before injection takes place.
BUG=39899 TEST=browser_tests:ExtensionApiTest.ContentScriptCSSLocalization Review URL: http://codereview.chromium.org/7552028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_set.h')
-rw-r--r--chrome/common/extensions/extension_set.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_set.h b/chrome/common/extensions/extension_set.h
index dbd16ad..d50086b 100644
--- a/chrome/common/extensions/extension_set.h
+++ b/chrome/common/extensions/extension_set.h
@@ -6,6 +6,7 @@
#define CHROME_COMMON_EXTENSIONS_EXTENSION_SET_H_
#pragma once
+#include <map>
#include <string>
#include <vector>
@@ -18,6 +19,8 @@
// Only one extension can be in the set with a given ID.
class ExtensionSet {
public:
+ typedef std::pair<FilePath, std::string> ExtensionPathAndDefaultLocale;
+
ExtensionSet();
~ExtensionSet();
@@ -57,6 +60,10 @@ class ExtensionSet {
// permissions the given extension has been granted.
bool ExtensionBindingsAllowed(const GURL& url) const;
+ // Populates map with the path and default locale for all extension IDs.
+ void GetExtensionsPathAndDefaultLocale(
+ std::map<std::string, ExtensionPathAndDefaultLocale>& info) const;
+
private:
FRIEND_TEST_ALL_PREFIXES(ExtensionSetTest, ExtensionSet);