DescriptionDon't unnecessarily copy strings
Add a function base::SplitStringPieceUsingSubstr that splits a string
using a substring delimiter without copying the string parts. Use it in
HttpRequestHeaders::AddHeadersFromString.
BUG=572076
Committed: https://crrev.com/0e8b35ae352e71ea43bf1dc9f6b68128dc8ab187
Cr-Commit-Position: refs/heads/master@{#367504}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Add WhitespaceHandling and SplitResult to SplitStringPieceUsingSubstr #
Messages
Total messages: 16 (5 generated)
|