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

Unified Diff: chrome/browser/extensions/api/content_settings/content_settings_api.h

Issue 10876083: [4] Changing content_settings_api to use PluginFinder's async interface (Closed) Base URL: http://git.chromium.org/chromium/src.git@async_start
Patch Set: Substitute include with forward declaration in .h file Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/content_settings/content_settings_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/content_settings/content_settings_api.h
diff --git a/chrome/browser/extensions/api/content_settings/content_settings_api.h b/chrome/browser/extensions/api/content_settings/content_settings_api.h
index ecba4951a949453a274908d27ac112dd7b0bd83d..b58f66f844108b4dde54fd5fb1ca70fbb4eb574b 100644
--- a/chrome/browser/extensions/api/content_settings/content_settings_api.h
+++ b/chrome/browser/extensions/api/content_settings/content_settings_api.h
@@ -7,7 +7,10 @@
#include "chrome/browser/extensions/extension_function.h"
+class PluginFinder;
+
namespace webkit {
+struct WebPluginInfo;
namespace npapi {
class PluginGroup;
}
@@ -62,11 +65,14 @@ class GetResourceIdentifiersFunction : public AsyncExtensionFunction {
FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest,
ContentSettingsGetResourceIdentifiers);
- void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups);
+ // Callback method that gets executed when both |finder| and |plugins|
+ // are asynchronously fetched.
+ void OnGotPlugins(const std::vector<webkit::WebPluginInfo>& plugins,
+ PluginFinder* finder);
// Used to override the global plugin list in tests.
- static void SetPluginGroupsForTesting(
- const std::vector<webkit::npapi::PluginGroup>* plugin_groups);
+ static void SetPluginsForTesting(
+ const std::vector<webkit::WebPluginInfo>* plugins);
};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/api/content_settings/content_settings_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698