commit | e1cbda8a3f3287a2a3ea264c0c7659d66b8a8b0f | [log] [tgz] |
---|---|---|
author | Johannes Henkel <johannes@chromium.org> | Mon Mar 18 21:17:03 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Mar 18 21:17:03 2019 |
tree | 2c3c7959e0fad22ed36a407da206375b8e569efe | |
parent | 3316358ad559f3cf2cb57fed7bbee36dc13d41c1 [diff] |
Make HttpServer interface more precise to reduce copying. OnWebSocketMessage receives an std::string, so now it can be moved. SendOverWebSocket accepts a base::StringPiece data, so now it can come from anything that provides such bytes (e.g. a vector of bytes), not just from std::string. This change is similar to https://chromium-review.googlesource.com/c/chromium/src/+/1525276 and https://chromium-review.googlesource.com/c/chromium/src/+/1525405 which I submitted earlier. Change-Id: I8a4eed11f46867158b67f24953ffcf801b6bf4b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1526695 Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Johannes Henkel <johannes@chromium.org> Cr-Commit-Position: refs/heads/master@{#641762}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .