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

Unified Diff: google_apis/gcm/base/gcm_util.h

Issue 1137463003: Support getting and deleting token for Instance ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch to land Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/gcm/BUILD.gn ('k') | google_apis/gcm/base/gcm_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « google_apis/gcm/BUILD.gn ('k') | google_apis/gcm/base/gcm_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698