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

Unified Diff: chromecast/browser/cast_content_browser_client.h

Issue 1298473004: [Chromecast] Moves persistent UMA client ID handling to common code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: GN updates, initialize pointer to nullptr Created 5 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
« no previous file with comments | « chromecast/browser/cast_browser_process.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client.h
diff --git a/chromecast/browser/cast_content_browser_client.h b/chromecast/browser/cast_content_browser_client.h
index 9a1d10accdcdcfe5d2508a2d36460b2299efe998..25ca3f95ac34a82c8fbc32de565c254c316071a4 100644
--- a/chromecast/browser/cast_content_browser_client.h
+++ b/chromecast/browser/cast_content_browser_client.h
@@ -25,8 +25,8 @@ namespace media {
class AudioManagerFactory;
}
-namespace net {
-class HostResolver;
+namespace metrics {
+class MetricsService;
}
namespace chromecast {
@@ -40,7 +40,7 @@ namespace shell {
class CastBrowserMainParts;
class URLRequestContextFactory;
-class CastContentBrowserClient: public content::ContentBrowserClient {
+class CastContentBrowserClient : public content::ContentBrowserClient {
public:
// Creates an implementation of CastContentBrowserClient. Platform should
// link in an implementation as needed.
@@ -69,6 +69,13 @@ class CastContentBrowserClient: public content::ContentBrowserClient {
// Performs cleanup for process exit (but before AtExitManager cleanup).
void ProcessExiting();
+ // Invoked when the metrics client ID changes.
+ virtual void SetMetricsClientId(const std::string& client_id);
+
+ // Allows registration of extra metrics providers.
+ virtual void RegisterMetricsProviders(
+ ::metrics::MetricsService* metrics_service);
+
// content::ContentBrowserClient implementation:
content::BrowserMainParts* CreateBrowserMainParts(
const content::MainFunctionParams& parameters) override;
« no previous file with comments | « chromecast/browser/cast_browser_process.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698