Index: chrome/browser/plugin_finder.h |
diff --git a/chrome/browser/plugin_finder.h b/chrome/browser/plugin_finder.h |
index f0d75d5c10acbe6612852b7b1fd304e0e8923496..9fdabc01e1d7d6ccc6c63be020297e9d7725dc64 100644 |
--- a/chrome/browser/plugin_finder.h |
+++ b/chrome/browser/plugin_finder.h |
@@ -34,8 +34,15 @@ class PluginFinder { |
// Returns the plug-in with the given identifier. |
PluginInstaller* FindPluginWithIdentifier(const std::string& identifier); |
+ // Returns a map of all data loaded from plug-in metadata files. |
+ // The key is the plug-in identifier. |
+ // The value is an instance of PluginInstaller holding the loaded data. |
+ // Note: this method triggers the lazy initialization for all PluginInstallers |
+ const std::map<std::string, PluginInstaller*>& GetAllPluginInstallers(); |
+ |
private: |
friend struct DefaultSingletonTraits<PluginFinder>; |
+ friend class PluginInstaller; |
friend class Singleton<PluginFinder>; |
FRIEND_TEST_ALL_PREFIXES(PluginFinderTest, JsonSyntax); |
FRIEND_TEST_ALL_PREFIXES(PluginFinderTest, PluginGroups); |