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

Unified Diff: components/ukm/ukm_service.h

Issue 2727013002: Add UKM API GetNewSourceID() (Closed)
Patch Set: fix comment Created 3 years, 10 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 | components/ukm/ukm_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ukm/ukm_service.h
diff --git a/components/ukm/ukm_service.h b/components/ukm/ukm_service.h
index 1775d16a1b7fb69218939aeb0f1686f9e12e7306..2a516dfa6500ff10d693f96833af99f2bb28ac67 100644
--- a/components/ukm/ukm_service.h
+++ b/components/ukm/ukm_service.h
@@ -49,6 +49,10 @@ class UkmService : public base::SupportsWeakPtr<UkmService> {
UkmService(PrefService* pref_service, metrics::MetricsServiceClient* client);
virtual ~UkmService();
+ // Get the new source ID, which is unique for the duration of a browser
+ // session.
+ static int32_t GetNewSourceID();
+
// Update the URL on the source keyed to the given source ID. If the source
// does not exist, it will create a new UkmSource object.
void UpdateSourceURL(int32_t source_id, const GURL& url);
« no previous file with comments | « no previous file | components/ukm/ukm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698