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

Unified Diff: net/base/mime_util.h

Issue 1547593002: Introducing a net::GenerateMimeMultipartBoundary helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 11 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: net/base/mime_util.h
diff --git a/net/base/mime_util.h b/net/base/mime_util.h
index d58ddb07a92ba9ee9d85c5fd358a6ddec7aa8a96..48b9a648af696a9307f6f85b1fe427dc92eecae9 100644
--- a/net/base/mime_util.h
+++ b/net/base/mime_util.h
@@ -100,6 +100,10 @@ enum CertificateMimeType {
CERTIFICATE_MIME_TYPE_PKCS12_ARCHIVE,
};
+// Generates a random MIME multipart boundary.
+// The returned string is guaranteed to be at most 70 characters long.
+NET_EXPORT std::string GenerateMimeMultipartBoundary();
+
// Prepares one value as part of a multi-part upload request.
NET_EXPORT void AddMultipartValueForUpload(const std::string& value_name,
const std::string& value,

Powered by Google App Engine
This is Rietveld 408576698