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

Unified Diff: chrome/common/extensions/extension_set.h

Issue 7552028: Injected CSS localization fix (see bug no.) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated. Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698