Index: google_apis/gcm/base/gcm_util.h |
diff --git a/google_apis/gcm/base/gcm_util.h b/google_apis/gcm/base/gcm_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..261950bb57eea1e9ad8be46d53f5469952a1b600 |
--- /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_ |