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

Side by Side Diff: components/sync/engine_impl/net/url_translator.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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 "components/sync/engine_impl/net/url_translator.h"
9 9
10 #include "net/base/escape.h" 10 #include "net/base/escape.h"
11 11
12 using std::string; 12 using std::string;
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 namespace { 16 namespace {
17 // Parameters that the server understands. (here, a-Z) 17 // Parameters that the server understands. (here, a-Z)
18 const char kParameterClient[] = "client"; 18 const char kParameterClient[] = "client";
(...skipping 27 matching lines...) Expand all
46 string query; 46 string query;
47 query += kParameterClient; 47 query += kParameterClient;
48 query += "=" + CgiEscapeString(kClientName); 48 query += "=" + CgiEscapeString(kClientName);
49 query += "&"; 49 query += "&";
50 query += kParameterClientID; 50 query += kParameterClientID;
51 query += "=" + CgiEscapeString(client_id); 51 query += "=" + CgiEscapeString(client_id);
52 return query; 52 return query;
53 } 53 }
54 54
55 } // namespace syncer 55 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/net/url_translator.h ('k') | components/sync/engine_impl/non_blocking_type_commit_contribution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698