summaryrefslogtreecommitdiffstats
path: root/components/sync_driver/local_device_info_provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/sync_driver/local_device_info_provider.h')
-rw-r--r--components/sync_driver/local_device_info_provider.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/sync_driver/local_device_info_provider.h b/components/sync_driver/local_device_info_provider.h
index 6036a7e..d61041e 100644
--- a/components/sync_driver/local_device_info_provider.h
+++ b/components/sync_driver/local_device_info_provider.h
@@ -27,6 +27,11 @@ class LocalDeviceInfoProvider {
// is destroyed.
virtual const DeviceInfo* GetLocalDeviceInfo() const = 0;
+ // Constructs a user agent string (ASCII) suitable for use by the syncapi
+ // for any HTTP communication. This string is used by the sync backend for
+ // classifying client types when calculating statistics.
+ virtual std::string GetSyncUserAgent() const = 0;
+
// Returns a GUID string used for creation of the machine tag for
// this local session; an empty sting if LocalDeviceInfoProvider hasn't been
// initialized yet.