Index: chrome/common/extensions/extension_set.h |
diff --git a/chrome/common/extensions/extension_set.h b/chrome/common/extensions/extension_set.h |
index dbd16ad1ffc8354a225a2812444a8a08f613616e..d50086be4fd41c9a3f31689db1d666dda8182147 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); |