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

Unified Diff: chrome/browser/metrics/metrics_service.h

Issue 7980011: Convert the PluginService interface to be an async wrapper around PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert to PS3 and rebase Created 9 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
Index: chrome/browser/metrics/metrics_service.h
diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h
index 7d9f0284ef4ebf512edc58364e3af3bfb33f9f97..b3e38f2aa184c4734b4687428e0e8c72d18013e3 100644
--- a/chrome/browser/metrics/metrics_service.h
+++ b/chrome/browser/metrics/metrics_service.h
@@ -38,6 +38,7 @@ class TemplateURLService;
namespace base {
class DictionaryValue;
class ListValue;
+class MessageLoopProxy;
}
namespace prerender {
@@ -165,12 +166,17 @@ class MetricsService : public NotificationObserver,
NEED_TO_SHUTDOWN = ~CLEANLY_SHUTDOWN
};
- class InitTask;
- class InitTaskComplete;
+ // First part of the init task. Called on the FILE thread to load hardware
+ // class information.
+ void InitTaskGetHardwareClass(base::MessageLoopProxy* target_loop);
- // Callback to let us know that the init task is done.
- void OnInitTaskComplete(
- const std::string& hardware_class,
+ // Callback from InitTaskGetHardwareClass() that continues the init task by
+ // loading plugin information.
+ void OnInitTaskGotHardwareClass(const std::string& hardware_class);
+
+ // Callback from PluginService::GetPlugins() that moves the state to
+ // INIT_TASK_DONE.
+ void OnInitTaskGotPluginInfo(
const std::vector<webkit::WebPluginInfo>& plugins);
// When we start a new version of Chromium (different from our last run), we

Powered by Google App Engine
This is Rietveld 408576698