summaryrefslogtreecommitdiffstats
path: root/google_apis/gcm/base/gcm_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'google_apis/gcm/base/gcm_util.h')
-rw-r--r--google_apis/gcm/base/gcm_util.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/google_apis/gcm/base/gcm_util.h b/google_apis/gcm/base/gcm_util.h
new file mode 100644
index 0000000..261950b
--- /dev/null
+++ b/google_apis/gcm/base/gcm_util.h
@@ -0,0 +1,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_