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

Issue 2267233002: Change WebSocketChannel to pass data via IOBuffer (Closed)

Created:
4 years, 4 months ago by darin (slow to review)
Modified:
4 years, 2 months ago
Reviewers:
yhirano
CC:
chromium-reviews, jam, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change WebSocketChannel to pass data via IOBuffer This avoids having to copy the data between std::vector<char> and IOBuffer within the implementation of WebSocketChannel. As a follow-up, I plan to see about eliminating a similar copy at the Mojo bindings layer in content/browser/websockets/. Committed: https://crrev.com/0da77e9261dad8cf86e68ccccdfd436afaf0208a Cr-Commit-Position: refs/heads/master@{#422846}

Patch Set 1 #

Patch Set 2 : snapshot #

Patch Set 3 : More #

Total comments: 5

Patch Set 4 : Update per review feedback #

Total comments: 2

Patch Set 5 : Make it const char* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -258 lines) Patch
M content/browser/websockets/websocket_impl.cc View 1 2 3 4 chunks +15 lines, -8 lines 0 comments Download
M net/websockets/websocket_channel.h View 1 2 3 6 chunks +17 lines, -16 lines 0 comments Download
M net/websockets/websocket_channel.cc View 1 2 3 4 15 chunks +46 lines, -38 lines 0 comments Download
M net/websockets/websocket_channel_test.cc View 1 2 3 4 43 chunks +201 lines, -190 lines 0 comments Download
M net/websockets/websocket_end_to_end_test.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M net/websockets/websocket_event_interface.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 41 (27 generated)
Ryan Sleevi
Ah, now it's much more obvious what you are doing and why you were asking ...
4 years, 3 months ago (2016-08-30 08:07:39 UTC) #14
darin (slow to review)
On 2016/08/30 08:07:39, Ryan Sleevi (slow) wrote: > Ah, now it's much more obvious what ...
4 years, 3 months ago (2016-08-30 23:43:30 UTC) #15
darin (slow to review)
@yhirano - please let me know what you think. thanks!
4 years, 3 months ago (2016-09-02 20:21:39 UTC) #22
yhirano
This CL removes some copy operations. We can remove these more easily by replacing some ...
4 years, 3 months ago (2016-09-06 12:19:48 UTC) #23
darin (slow to review)
On 2016/09/06 12:19:48, yhirano wrote: > This CL removes some copy operations. We can remove ...
4 years, 3 months ago (2016-09-06 20:31:27 UTC) #24
darin (slow to review)
On 2016/09/06 12:19:48, yhirano wrote: ... > Splitting this CL to two, one for removing ...
4 years, 2 months ago (2016-09-30 22:43:35 UTC) #25
darin (slow to review)
presubmit upload checks requested that I run "git cl format net", so that added a ...
4 years, 2 months ago (2016-09-30 22:48:57 UTC) #27
darin (slow to review)
presubmit upload checks requested that I run "git cl format net", so that added a ...
4 years, 2 months ago (2016-09-30 22:48:57 UTC) #28
darin (slow to review)
@yhirano - PTAL, thx!
4 years, 2 months ago (2016-10-03 20:55:02 UTC) #32
yhirano
lgtm https://codereview.chromium.org/2267233002/diff/50001/net/websockets/websocket_channel_test.cc File net/websockets/websocket_channel_test.cc (right): https://codereview.chromium.org/2267233002/diff/50001/net/websockets/websocket_channel_test.cc#newcode164 net/websockets/websocket_channel_test.cc:164: char* data = buffer ? buffer->data() : nullptr; ...
4 years, 2 months ago (2016-10-04 01:35:09 UTC) #33
darin (slow to review)
Thanks for the review and good suggestion. https://codereview.chromium.org/2267233002/diff/50001/net/websockets/websocket_channel_test.cc File net/websockets/websocket_channel_test.cc (right): https://codereview.chromium.org/2267233002/diff/50001/net/websockets/websocket_channel_test.cc#newcode164 net/websockets/websocket_channel_test.cc:164: char* data ...
4 years, 2 months ago (2016-10-04 16:17:49 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2267233002/70001
4 years, 2 months ago (2016-10-04 16:28:49 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 2 months ago (2016-10-04 17:31:44 UTC) #39
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 17:34:45 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0da77e9261dad8cf86e68ccccdfd436afaf0208a
Cr-Commit-Position: refs/heads/master@{#422846}

Powered by Google App Engine
This is Rietveld 408576698