1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_
10 #include "components/version_info/version_info.h"
19 // Default sync server URL. Visible for testing.
20 extern const char* kSyncServerUrl
;
22 // Sync server URL for dev channel users. Visible for testing.
23 extern const char* kSyncDevServerUrl
;
26 GURL
GetSyncServiceURL(const base::CommandLine
& command_line
,
27 version_info::Channel channel
);
29 // Helper to construct a user agent string (ASCII) suitable for use by
30 // the syncapi for any HTTP communication. This string is used by the sync
31 // backend for classifying client types when calculating statistics.
32 std::string
MakeDesktopUserAgentForSync(version_info::Channel channel
);
33 std::string
MakeUserAgentForSync(const std::string
& system
,
34 version_info::Channel channel
);
36 #endif // COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_