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

Unified Diff: extensions/browser/api/extensions_api_client.h

Issue 2331343012: Create MetricsPrivateDelegate for metricsPrivate behavior (Closed)
Patch Set: Created 4 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: extensions/browser/api/extensions_api_client.h
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index 126b6e0f86f40298580195067ae17a9a2d6bcd1b..2d2e609373ec11dc90c842e1ab9c2c9f74a46077 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -36,6 +36,7 @@ class DevicePermissionsPrompt;
class ExtensionOptionsGuest;
class ExtensionOptionsGuestDelegate;
class ManagementAPIDelegate;
+class MetricsPrivateDelegate;
class MimeHandlerViewGuest;
class MimeHandlerViewGuestDelegate;
class RulesCacheDelegate;
@@ -127,6 +128,12 @@ class ExtensionsAPIClient {
// Creates a delegate for handling the management extension api.
virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const;
+ // Creates a delegate for MetricsPrivateAPI behavior dependent on the
+ // embedder. TODO(michaelpg): Consolidate with embedder-dependent interfaces
+ // in //components/metrics as app_shell support for metrics is completed.
+ virtual std::unique_ptr<MetricsPrivateDelegate> CreateMetricsPrivateDelegate()
+ const;
+
// NOTE: If this interface gains too many methods (perhaps more than 20) it
// should be split into one interface per API.
};

Powered by Google App Engine
This is Rietveld 408576698