OLD | NEW |
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 Loading... |
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 |
OLD | NEW |