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

Side by Side Diff: components/sync_driver/sync_util.h

Issue 1308313003: Componentize chrome/common/sync_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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 unified diff | Download patch
« no previous file with comments | « components/sync_driver/sync_driver_switches.cc ('k') | components/sync_driver/sync_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_SYNC_UTIL_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_
6 #define CHROME_COMMON_SYNC_UTIL_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/version_info/version_info.h"
11
10 class GURL; 12 class GURL;
11 13
12 namespace base { 14 namespace base {
13 class CommandLine; 15 class CommandLine;
14 } 16 }
15 17
16 namespace internal { 18 namespace internal {
17 // Default sync server URL. Visible for testing. 19 // Default sync server URL. Visible for testing.
18 extern const char* kSyncServerUrl; 20 extern const char* kSyncServerUrl;
19 21
20 // Sync server URL for dev channel users. Visible for testing. 22 // Sync server URL for dev channel users. Visible for testing.
21 extern const char* kSyncDevServerUrl; 23 extern const char* kSyncDevServerUrl;
22 } 24 }
23 25
24 GURL GetSyncServiceURL(const base::CommandLine& command_line); 26 GURL GetSyncServiceURL(const base::CommandLine& command_line,
27 version_info::Channel channel);
25 28
26 // Helper to construct a user agent string (ASCII) suitable for use by 29 // Helper to construct a user agent string (ASCII) suitable for use by
27 // the syncapi for any HTTP communication. This string is used by the sync 30 // the syncapi for any HTTP communication. This string is used by the sync
28 // backend for classifying client types when calculating statistics. 31 // backend for classifying client types when calculating statistics.
29 std::string MakeDesktopUserAgentForSync(); 32 std::string MakeDesktopUserAgentForSync(version_info::Channel channel);
30 std::string MakeUserAgentForSync(const std::string& system); 33 std::string MakeUserAgentForSync(const std::string& system,
34 version_info::Channel channel);
31 35
32 #endif // CHROME_COMMON_SYNC_UTIL_H_ 36 #endif // COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_
OLDNEW
« no previous file with comments | « components/sync_driver/sync_driver_switches.cc ('k') | components/sync_driver/sync_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698