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

Issue 681303003: Add HTTPMultipartBuilder and its test. (Closed)

Created:
6 years, 1 month ago by Robert Sesek
Modified:
6 years, 1 month ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Project:
crashpad
Visibility:
Public.

Description

Add HTTPMultipartBuilder and its test. BUG=https://crbug.com/415544 R=mark@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/9db5d6f77370518edba19de874a8dc15b1fe21fa

Patch Set 1 : #

Patch Set 2 : #

Total comments: 21

Patch Set 3 : Address comments #

Total comments: 26

Patch Set 4 : #

Patch Set 5 : Assert safe MIME types #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -17 lines) Patch
M util/net/http_body_test.cc View 2 chunks +1 line, -17 lines 0 comments Download
A util/net/http_body_test_util.h View 1 chunk +49 lines, -0 lines 0 comments Download
A util/net/http_body_test_util.cc View 1 chunk +48 lines, -0 lines 0 comments Download
A util/net/http_multipart_builder.h View 1 2 3 1 chunk +89 lines, -0 lines 0 comments Download
A util/net/http_multipart_builder.cc View 1 2 3 4 1 chunk +190 lines, -0 lines 1 comment Download
A util/net/http_multipart_builder_test.cc View 1 2 3 4 1 chunk +264 lines, -0 lines 0 comments Download
M util/util.gyp View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Robert Sesek
6 years, 1 month ago (2014-10-28 19:11:50 UTC) #2
Mark Mentovai
https://codereview.chromium.org/681303003/diff/40001/util/net/http_body_test_util.h File util/net/http_body_test_util.h (right): https://codereview.chromium.org/681303003/diff/40001/util/net/http_body_test_util.h#newcode28 util/net/http_body_test_util.h:28: //! \brief Reads a HTTPBodyStream to a string. If ...
6 years, 1 month ago (2014-10-28 22:34:28 UTC) #3
Robert Sesek
https://codereview.chromium.org/681303003/diff/40001/util/net/http_body_test_util.h File util/net/http_body_test_util.h (right): https://codereview.chromium.org/681303003/diff/40001/util/net/http_body_test_util.h#newcode28 util/net/http_body_test_util.h:28: //! \brief Reads a HTTPBodyStream to a string. If ...
6 years, 1 month ago (2014-10-29 19:52:01 UTC) #4
Mark Mentovai
https://codereview.chromium.org/681303003/diff/40001/util/net/http_body_test_util.h File util/net/http_body_test_util.h (right): https://codereview.chromium.org/681303003/diff/40001/util/net/http_body_test_util.h#newcode28 util/net/http_body_test_util.h:28: //! \brief Reads a HTTPBodyStream to a string. If ...
6 years, 1 month ago (2014-10-29 21:29:14 UTC) #5
Robert Sesek
https://codereview.chromium.org/681303003/diff/60001/util/net/http_multipart_builder.cc File util/net/http_multipart_builder.cc (right): https://codereview.chromium.org/681303003/diff/60001/util/net/http_multipart_builder.cc#newcode82 util/net/http_multipart_builder.cc:82: const char kBoundaryCRLF[] = "\r\n\r\n"; On 2014/10/29 21:29:13, Mark ...
6 years, 1 month ago (2014-10-29 21:47:53 UTC) #7
Mark Mentovai
LGTM, I do feel strongly about this CHECK. https://codereview.chromium.org/681303003/diff/60001/util/net/http_multipart_builder.cc File util/net/http_multipart_builder.cc (right): https://codereview.chromium.org/681303003/diff/60001/util/net/http_multipart_builder.cc#newcode146 util/net/http_multipart_builder.cc:146: attachment.content_type.c_str(), ...
6 years, 1 month ago (2014-10-29 22:46:55 UTC) #8
Robert Sesek
https://codereview.chromium.org/681303003/diff/60001/util/net/http_multipart_builder.cc File util/net/http_multipart_builder.cc (right): https://codereview.chromium.org/681303003/diff/60001/util/net/http_multipart_builder.cc#newcode146 util/net/http_multipart_builder.cc:146: attachment.content_type.c_str(), kBoundaryCRLF); On 2014/10/29 22:46:55, Mark Mentovai wrote: > ...
6 years, 1 month ago (2014-10-29 23:12:04 UTC) #9
Robert Sesek
Committed patchset #5 (id:120001) manually as 9db5d6f77370518edba19de874a8dc15b1fe21fa (presubmit successful).
6 years, 1 month ago (2014-10-29 23:13:28 UTC) #10
Mark Mentovai
6 years, 1 month ago (2014-10-29 23:13:59 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/681303003/diff/120001/util/net/http_multipart...
File util/net/http_multipart_builder.cc (right):

https://codereview.chromium.org/681303003/diff/120001/util/net/http_multipart...
util/net/http_multipart_builder.cc:107: c == '-');
You need '+' also. application/xml+xhtml, for example.

Powered by Google App Engine
This is Rietveld 408576698