|
|
Created:
3 years, 10 months ago by yhirano Modified:
3 years, 10 months ago CC:
chromium-reviews, tyoshino+watch_chromium.org, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, blink-reviews, Srirama, kinuko+watch Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionParsedContentType refactoring
This is a preliminary refactoring for fixing compatibility issues of
ParsedContentType.
BUG=689731
Review-Url: https://codereview.chromium.org/2704153002
Cr-Commit-Position: refs/heads/master@{#452045}
Committed: https://chromium.googlesource.com/chromium/src/+/d4c7568248450ac03286a4af6fe46380b582ed68
Patch Set 1 #Patch Set 2 : fix #Patch Set 3 : fix #
Total comments: 3
Patch Set 4 : fix #
Dependent Patchsets: Messages
Total messages: 54 (32 generated)
The CQ bit was checked by yhirano@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yhirano@chromium.org to run a CQ dry run
yhirano@chromium.org changed reviewers: + kinuko@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by yhirano@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
tyoshino@google.com changed reviewers: + tyoshino@google.com
lgtm https://codereview.chromium.org/2704153002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/network/ParsedContentType.cpp (right): https://codereview.chromium.org/2704153002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/network/ParsedContentType.cpp:81: parse(contentType.stripWhiteSpace()); How about saving the result of parse() in a member indicating validness of the ParsedContentType like GURL? The users would call ParsedContentType(contentType).isValid() instead of ParsedContentType::isValid(contentType). It wouldn't break MIMEHeader::parseHeader() since retrieveKeyValuePairs() strips \r and \n.
https://codereview.chromium.org/2704153002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/network/ParsedContentType.cpp (right): https://codereview.chromium.org/2704153002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/network/ParsedContentType.cpp:81: parse(contentType.stripWhiteSpace()); On 2017/02/20 14:48:46, tyoshino-do-not-use wrote: > How about saving the result of parse() in a member indicating validness of the > ParsedContentType like GURL? > > The users would call ParsedContentType(contentType).isValid() instead of > ParsedContentType::isValid(contentType). It wouldn't break > MIMEHeader::parseHeader() since retrieveKeyValuePairs() strips \r and \n. Sorry. I forgot to insert break in the last paragraph and explain regarding what concern I wrote the last sentence. I meant that skipping parse() in case contentType contains \r or \n doesn't break MIMEHeader::parseHeader().
The CQ bit was checked by yhirano@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2704153002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/network/ParsedContentType.cpp (right): https://codereview.chromium.org/2704153002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/network/ParsedContentType.cpp:81: parse(contentType.stripWhiteSpace()); On 2017/02/20 14:50:31, tyoshino-do-not-use wrote: > On 2017/02/20 14:48:46, tyoshino-do-not-use wrote: > > How about saving the result of parse() in a member indicating validness of the > > ParsedContentType like GURL? > > > > The users would call ParsedContentType(contentType).isValid() instead of > > ParsedContentType::isValid(contentType). It wouldn't break > > MIMEHeader::parseHeader() since retrieveKeyValuePairs() strips \r and \n. > > Sorry. I forgot to insert break in the last paragraph and explain regarding what > concern I wrote the last sentence. I meant that skipping parse() in case > contentType contains \r or \n doesn't break MIMEHeader::parseHeader(). Done.
tyoshino@chromium.org changed reviewers: + tyoshino@chromium.org
lgtm
The CQ bit was unchecked by yhirano@chromium.org
The CQ bit was checked by yhirano@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from kinuko@chromium.org, tyoshino@google.com Link to the patchset: https://codereview.chromium.org/2704153002/#ps60001 (title: "fix")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
yhirano@chromium.org changed reviewers: + jrummell@chromium.org
+jrummell@chromium.org for OWNER review.
owner LGTM
Thank you!
The CQ bit was checked by yhirano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== ParsedContentType refactoring This is a preliminary refactoring for fix compatibility issues of ParsedContentType. BUG=689731 ========== to ========== ParsedContentType refactoring This is a preliminary refactoring for fixing compatibility issues of ParsedContentType. BUG=689731 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
media LGTM
The CQ bit was checked by yhirano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by yhirano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by yhirano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yhirano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1487772017323520, "parent_rev": "0932b390e4b08af8590e8553a7b2a1fc8ef9c99b", "commit_rev": "d4c7568248450ac03286a4af6fe46380b582ed68"}
Message was sent while issue was closed.
Description was changed from ========== ParsedContentType refactoring This is a preliminary refactoring for fixing compatibility issues of ParsedContentType. BUG=689731 ========== to ========== ParsedContentType refactoring This is a preliminary refactoring for fixing compatibility issues of ParsedContentType. BUG=689731 Review-Url: https://codereview.chromium.org/2704153002 Cr-Commit-Position: refs/heads/master@{#452045} Committed: https://chromium.googlesource.com/chromium/src/+/d4c7568248450ac03286a4af6fe4... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/d4c7568248450ac03286a4af6fe4... |