summaryrefslogtreecommitdiffstats
path: root/google_apis/gcm/base/gcm_util.h
blob: 261950bb57eea1e9ad8be46d53f5469952a1b600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef GOOGLE_APIS_GCM_BASE_GCM_UTIL_H_
#define GOOGLE_APIS_GCM_BASE_GCM_UTIL_H_

#include <string>

namespace gcm {

// Encodes key-value pair into form format that could be submitted as http post
// data. Each key-value pair is separated by an '&', and each key is separated
// from its value by an '='.
void BuildFormEncoding(const std::string& key,
                       const std::string& value,
                       std::string* out);

}  // namespace gcm

#endif  // GOOGLE_APIS_GCM_BASE_GCM_UTIL_H_