Chromium Code Reviews
DescriptionMake FileReader return ownership of the string content.
Since FileReader reads stuff on separate thread, moving
the content around with std::string& is expensive. Make
FileReader pass the string's ownership via unique_ptr.
This reduces string copy primarily in ExecuteCodeFunction
and web_view declarative content scripts.
BUG=622464
Committed: https://crrev.com/b81e69a88c61106c1471d9585a37787f6624e063
Cr-Commit-Position: refs/heads/master@{#412957}
Patch Set 1 #Patch Set 2 : fix chromeos compile #Patch Set 3 : sync @tott #
Total comments: 6
Patch Set 4 : address comments #Messages
Total messages: 31 (21 generated)
|