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

Unified Diff: components/payments/content/android/utility/fingerprint_parser.h

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: Rebase Created 3 years, 9 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
Index: components/payments/content/android/utility/fingerprint_parser.h
diff --git a/components/payments/content/android/utility/fingerprint_parser.h b/components/payments/content/android/utility/fingerprint_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..a6f9ac732146b48a37f289423bf57c53e77043cb
--- /dev/null
+++ b/components/payments/content/android/utility/fingerprint_parser.h
@@ -0,0 +1,21 @@
+// Copyright 2017 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 COMPONENTS_PAYMENTS_CONTENT_ANDROID_UTILITY_FINGERPRINT_PARSER_H_
+#define COMPONENTS_PAYMENTS_CONTENT_ANDROID_UTILITY_FINGERPRINT_PARSER_H_
+
+#include <stddef.h>
+
+#include <string>
+#include <vector>
+
+namespace payments {
+
+// Converts a string representation of a 32-byte array (e.g., "01:02:03:04")
+// into a list of the corresponding bytes. Returns an empty list on error.
+std::vector<uint8_t> FingerprintStringToByteArray(const std::string& input);
+
+} // namespace payments
+
+#endif // COMPONENTS_PAYMENTS_CONTENT_ANDROID_UTILITY_FINGERPRINT_PARSER_H_
« no previous file with comments | « components/payments/content/android/utility/DEPS ('k') | components/payments/content/android/utility/fingerprint_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698