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

Side by Side Diff: sync/engine/net/url_translator.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « sync/engine/net/url_translator.h ('k') | sync/engine/nigori_util.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Contains the definition of a few helper functions used for generating sync 5 // Contains the definition of a few helper functions used for generating sync
6 // URLs. 6 // URLs.
7 7
8 #include "sync/engine/net/url_translator.h" 8 #include "sync/engine/net/url_translator.h"
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/port.h" 11 #include "base/port.h"
12 #include "net/base/escape.h" 12 #include "net/base/escape.h"
13 13
14 using std::string; 14 using std::string;
15 15
16 namespace csync { 16 namespace syncer {
17 17
18 namespace { 18 namespace {
19 // Parameters that the server understands. (here, a-Z) 19 // Parameters that the server understands. (here, a-Z)
20 const char kParameterClient[] = "client"; 20 const char kParameterClient[] = "client";
21 const char kParameterClientID[] = "client_id"; 21 const char kParameterClientID[] = "client_id";
22 22
23 #if defined(GOOGLE_CHROME_BUILD) 23 #if defined(GOOGLE_CHROME_BUILD)
24 const char kClientName[] = "Google Chrome"; 24 const char kClientName[] = "Google Chrome";
25 #else 25 #else
26 const char kClientName[] = "Chromium"; 26 const char kClientName[] = "Chromium";
(...skipping 20 matching lines...) Expand all
47 string MakeSyncQueryString(const string& client_id) { 47 string MakeSyncQueryString(const string& client_id) {
48 string query; 48 string query;
49 query += kParameterClient; 49 query += kParameterClient;
50 query += "=" + CgiEscapeString(kClientName); 50 query += "=" + CgiEscapeString(kClientName);
51 query += "&"; 51 query += "&";
52 query += kParameterClientID; 52 query += kParameterClientID;
53 query += "=" + CgiEscapeString(client_id); 53 query += "=" + CgiEscapeString(client_id);
54 return query; 54 return query;
55 } 55 }
56 56
57 } // namespace csync 57 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/net/url_translator.h ('k') | sync/engine/nigori_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698