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

Issue 1574213003: [ABANDONED] Use new Websocket SendBlob IPC from renderer. (Closed)

Created:
4 years, 11 months ago by Adam Rice
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, kinuko, tyoshino+watch_chromium.org, yhirano+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@websocket_blob_send_sender
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ABANDONED] Use new Websocket SendBlob IPC from renderer. Remove BlobLoader code from DocumentWebSocketChannel and replace it with code to use the new SendBlob IPC for browser-side Blob sending. See design document: https://docs.google.com/document/d/1CDiXB9pBumhFVVfmIn1CRI6v6byxyqWu2urEE9xp714/edit BUG=571656 TEST=webkit_unit_tests, layout tests

Patch Set 1 #

Patch Set 2 : Remove changes from parent CL. #

Patch Set 3 : Add unit tests. #

Patch Set 4 : Remove "using testing::StrEq" #

Patch Set 5 : Remove FileReaderLoader includes. #

Patch Set 6 : Hold reference to sent Blobs for longer. #

Patch Set 7 : Rebase. #

Patch Set 8 : Ignore unsolicited BlobSendComplete IPC. #

Patch Set 9 : Stub out html_viewer::WebSocketHandleImpl::sendBlob #

Patch Set 10 : Rebase. #

Patch Set 11 : Minor comment clarifications. #

Total comments: 4

Patch Set 12 : Comment that bufferedAmount may be temporarily too low. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -95 lines) Patch
M components/html_viewer/web_socket_handle_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/html_viewer/web_socket_handle_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M content/child/websocket_bridge.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/child/websocket_bridge.cc View 1 2 3 4 5 6 3 chunks +20 lines, -0 lines 0 comments Download
M content/child/websocket_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/send-file-blob-fail-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h View 1 2 3 4 5 6 3 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +49 lines, -85 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannelTest.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +112 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/websockets/WebSocketHandleClient.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (10 generated)
Adam Rice
Hello mpcomplete. I have to change the interface to blink::WebSocketHandle in order to implement browser-side ...
4 years, 10 months ago (2016-02-04 15:27:36 UTC) #5
mpcomplete
I'm afraid I'm not the right person to review this. I'm not familiar with this ...
4 years, 10 months ago (2016-02-04 18:21:22 UTC) #7
dglazkov
+sky Scott, could you peek at this?
4 years, 10 months ago (2016-02-04 18:23:24 UTC) #9
sky
html_viewer LGTM (we're going to nuke that directory soon)
4 years, 10 months ago (2016-02-04 22:22:40 UTC) #10
Adam Rice
+tyoshino for websockets OWNERS. This will need rebasing after https://codereview.chromium.org/1568523002/ (content::WebSocketBlobSender) has landed, but otherwise ...
4 years, 10 months ago (2016-02-08 00:43:09 UTC) #13
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp File third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp (right): https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp#newcode476 third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp:476: m_client->didConsumeBufferedAmount(blobUsedQuota); IIUC, it's possible that this would process flow ...
4 years, 10 months ago (2016-02-09 14:29:10 UTC) #14
Adam Rice
https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp File third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp (right): https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp#newcode476 third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp:476: m_client->didConsumeBufferedAmount(blobUsedQuota); On 2016/02/09 14:29:10, tyoshino wrote: > IIUC, it's ...
4 years, 10 months ago (2016-02-10 01:37:55 UTC) #15
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp File third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp (right): https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp#newcode476 third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp:476: m_client->didConsumeBufferedAmount(blobUsedQuota); On 2016/02/10 at 01:37:55, Adam Rice wrote: > ...
4 years, 10 months ago (2016-02-10 06:48:46 UTC) #16
Adam Rice
https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp File third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp (right): https://codereview.chromium.org/1574213003/diff/240001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp#newcode476 third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp:476: m_client->didConsumeBufferedAmount(blobUsedQuota); On 2016/02/10 06:48:46, tyoshino wrote: > Adding a ...
4 years, 10 months ago (2016-02-10 12:58:27 UTC) #17
sky
I nuked components/html_viewer the other day, so you don't need as a reviewer anymore. I've ...
4 years, 10 months ago (2016-02-10 17:29:41 UTC) #19
Adam Rice
4 years, 10 months ago (2016-02-12 02:26:35 UTC) #20
tyoshino: I will take out the components/html_viewer parts when I rebase. Please
let me know when is a good time to rebase.

Powered by Google App Engine
This is Rietveld 408576698