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

Issue 22914026: [ABANDONED] Introduce blink-side bridges for the new WebSocket implementation. (Closed)

Created:
7 years, 4 months ago by yhirano
Modified:
7 years, 2 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce blink-side bridges for the new WebSocket implementation. We are implementing the new WebSocket implementation. This CL introduces WebSocketHandle and WebSocketHandleClient, which are the bridge classes between WebCore and webkit_glue classes. NewWebSocketChannelHandle is also introduced, which is a WebSocketChannel derived class for WebSocketChannelHandle. These classes will be tested when content and chrome implementation is done. Currently this cl doesn't change any behavior because nobody uses the classes yet. BUG=275459 R=ricea, tyoshino, tkent

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 8

Patch Set 11 : Use a timer in NewWebSocketChannelImpl::resume #

Patch Set 12 : rebase #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Total comments: 11

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Total comments: 16

Patch Set 19 : #

Patch Set 20 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+820 lines, -46 lines) Patch
M Source/modules/modules.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A Source/modules/websockets/NewWebSocketChannelImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +210 lines, -0 lines 0 comments Download
A Source/modules/websockets/NewWebSocketChannelImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +569 lines, -0 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
A + public/platform/WebSocketHandle.h View 1 2 3 4 5 6 7 1 chunk +21 lines, -28 lines 0 comments Download
A + public/platform/WebSocketHandleClient.h View 1 2 3 4 5 6 7 2 chunks +14 lines, -18 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
yhirano
7 years, 4 months ago (2013-08-22 08:20:15 UTC) #1
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/22914026/diff/2001/Source/modules/websockets/NewWebSocketChannelImpl.h File Source/modules/websockets/NewWebSocketChannelImpl.h (right): https://codereview.chromium.org/22914026/diff/2001/Source/modules/websockets/NewWebSocketChannelImpl.h#newcode58 Source/modules/websockets/NewWebSocketChannelImpl.h:58: static PassRefPtr<NewWebSocketChannelImpl> create(ScriptExecutionContext* context, WebSocketChannelClient* client, const String& sourceURL ...
7 years, 4 months ago (2013-08-22 08:25:22 UTC) #2
yhirano
https://codereview.chromium.org/22914026/diff/2001/Source/modules/websockets/NewWebSocketChannelImpl.h File Source/modules/websockets/NewWebSocketChannelImpl.h (right): https://codereview.chromium.org/22914026/diff/2001/Source/modules/websockets/NewWebSocketChannelImpl.h#newcode58 Source/modules/websockets/NewWebSocketChannelImpl.h:58: static PassRefPtr<NewWebSocketChannelImpl> create(ScriptExecutionContext* context, WebSocketChannelClient* client, const String& sourceURL ...
7 years, 4 months ago (2013-08-22 08:40:30 UTC) #3
abarth-chromium
https://codereview.chromium.org/22914026/diff/12001/Source/modules/websockets/NewWebSocketChannelImpl.h File Source/modules/websockets/NewWebSocketChannelImpl.h (right): https://codereview.chromium.org/22914026/diff/12001/Source/modules/websockets/NewWebSocketChannelImpl.h#newcode156 Source/modules/websockets/NewWebSocketChannelImpl.h:156: ScriptExecutionContext* m_context; Is this raw pointer safe? Should this ...
7 years, 4 months ago (2013-08-22 19:39:07 UTC) #4
yhirano
https://codereview.chromium.org/22914026/diff/12001/Source/modules/websockets/NewWebSocketChannelImpl.h File Source/modules/websockets/NewWebSocketChannelImpl.h (right): https://codereview.chromium.org/22914026/diff/12001/Source/modules/websockets/NewWebSocketChannelImpl.h#newcode156 Source/modules/websockets/NewWebSocketChannelImpl.h:156: ScriptExecutionContext* m_context; On 2013/08/22 19:39:07, abarth wrote: > Is ...
7 years, 4 months ago (2013-08-23 01:35:13 UTC) #5
yhirano
https://codereview.chromium.org/22914026/diff/23001/public/platform/WebSocketHandle.h File public/platform/WebSocketHandle.h (right): https://codereview.chromium.org/22914026/diff/23001/public/platform/WebSocketHandle.h#newcode56 public/platform/WebSocketHandle.h:56: virtual void send(const char* data, size_t /* size */, ...
7 years, 4 months ago (2013-08-23 06:57:13 UTC) #6
yhirano
https://codereview.chromium.org/22914026/diff/23001/public/platform/WebSocketHandle.h File public/platform/WebSocketHandle.h (right): https://codereview.chromium.org/22914026/diff/23001/public/platform/WebSocketHandle.h#newcode56 public/platform/WebSocketHandle.h:56: virtual void send(const char* data, size_t /* size */, ...
7 years, 4 months ago (2013-08-23 07:01:00 UTC) #7
yhirano
I've just uploaded webkit_glue side change: https://codereview.chromium.org/22815034/
7 years, 3 months ago (2013-08-26 04:59:44 UTC) #8
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/22914026/diff/31001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/31001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode111 Source/modules/websockets/NewWebSocketChannelImpl.cpp:111: m_handle->connect(url, webProtocols, m_context->securityOrigin()->toString(), this); TODO to remember porting callStack ...
7 years, 3 months ago (2013-08-26 08:04:11 UTC) #9
yhirano
https://codereview.chromium.org/22914026/diff/31001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/31001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode111 Source/modules/websockets/NewWebSocketChannelImpl.cpp:111: m_handle->connect(url, webProtocols, m_context->securityOrigin()->toString(), this); On 2013/08/26 08:04:11, tyoshino wrote: ...
7 years, 3 months ago (2013-08-26 08:36:18 UTC) #10
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/22914026/diff/38001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/38001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode355 Source/modules/websockets/NewWebSocketChannelImpl.cpp:355: if (type == WebKit::WebSocketHandle::MessageTypeText) { switch? https://codereview.chromium.org/22914026/diff/38001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode497 Source/modules/websockets/NewWebSocketChannelImpl.cpp:497: isClean(event.closingCode) ...
7 years, 3 months ago (2013-08-26 09:35:42 UTC) #11
yhirano
https://codereview.chromium.org/22914026/diff/38001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/38001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode355 Source/modules/websockets/NewWebSocketChannelImpl.cpp:355: if (type == WebKit::WebSocketHandle::MessageTypeText) { On 2013/08/26 09:35:42, tyoshino ...
7 years, 3 months ago (2013-08-26 10:21:35 UTC) #12
abarth-chromium
On 2013/08/23 01:35:13, yhirano wrote: > https://codereview.chromium.org/22914026/diff/12001/Source/modules/websockets/NewWebSocketChannelImpl.h > File Source/modules/websockets/NewWebSocketChannelImpl.h (right): > > https://codereview.chromium.org/22914026/diff/12001/Source/modules/websockets/NewWebSocketChannelImpl.h#newcode156 > ...
7 years, 3 months ago (2013-08-26 19:22:33 UTC) #13
yhirano
On 2013/08/26 19:22:33, abarth wrote: > On 2013/08/23 01:35:13, yhirano wrote: > > > https://codereview.chromium.org/22914026/diff/12001/Source/modules/websockets/NewWebSocketChannelImpl.h ...
7 years, 3 months ago (2013-08-26 22:17:31 UTC) #14
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/22914026/diff/43001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/43001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode163 Source/modules/websockets/NewWebSocketChannelImpl.cpp:163: } comment that buffer.slice copies contents. https://codereview.chromium.org/22914026/diff/43001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode308 Source/modules/websockets/NewWebSocketChannelImpl.cpp:308: m_messages.remove(0, ...
7 years, 3 months ago (2013-08-27 05:38:48 UTC) #15
yhirano
https://codereview.chromium.org/22914026/diff/43001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/43001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode163 Source/modules/websockets/NewWebSocketChannelImpl.cpp:163: } On 2013/08/27 05:38:48, tyoshino wrote: > comment that ...
7 years, 3 months ago (2013-08-27 06:20:23 UTC) #16
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode368 Source/modules/websockets/NewWebSocketChannelImpl.cpp:368: ASSERT(!m_receivingMessageData.isEmpty()); it's possible that the first frame doesn't contain ...
7 years, 3 months ago (2013-08-27 09:15:38 UTC) #17
yhirano
https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode279 Source/modules/websockets/NewWebSocketChannelImpl.cpp:279: size_t size = std::min(static_cast<size_t>(m_sendingQuota), message.text.length() - m_sentSizeOfTopMessage); If m_sendingQuota ...
7 years, 3 months ago (2013-08-28 02:11:36 UTC) #18
yhirano
https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode279 Source/modules/websockets/NewWebSocketChannelImpl.cpp:279: size_t size = std::min(static_cast<size_t>(m_sendingQuota), message.text.length() - m_sentSizeOfTopMessage); If m_sendingQuota ...
7 years, 3 months ago (2013-08-28 02:11:36 UTC) #19
yhirano
https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode279 Source/modules/websockets/NewWebSocketChannelImpl.cpp:279: size_t size = std::min(static_cast<size_t>(m_sendingQuota), message.text.length() - m_sentSizeOfTopMessage); On 2013/08/28 ...
7 years, 3 months ago (2013-08-28 02:14:45 UTC) #20
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/67001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode420 Source/modules/websockets/NewWebSocketChannelImpl.cpp:420: WebSocketChannelClient* client = m_client; On 2013/08/28 02:14:45, yhirano wrote: ...
7 years, 3 months ago (2013-08-28 05:26:02 UTC) #21
yhirano
https://codereview.chromium.org/22914026/diff/80001/Source/modules/websockets/NewWebSocketChannelImpl.cpp File Source/modules/websockets/NewWebSocketChannelImpl.cpp (right): https://codereview.chromium.org/22914026/diff/80001/Source/modules/websockets/NewWebSocketChannelImpl.cpp#newcode104 Source/modules/websockets/NewWebSocketChannelImpl.cpp:104: if (m_identifier) { On 2013/08/28 05:26:03, tyoshino wrote: > ...
7 years, 3 months ago (2013-08-28 06:29:09 UTC) #22
abarth-chromium
There's a bunch of stuff in this Cl that worries me. You've got a raw ...
7 years, 3 months ago (2013-08-28 06:35:59 UTC) #23
yhirano
7 years, 3 months ago (2013-08-28 07:24:59 UTC) #24
On 2013/08/28 06:35:59, abarth wrote:
> There's a bunch of stuff in this Cl that worries me.  You've got a raw pointer
> to the ScriptExecutionContext and manual calls to ref() and deref().  This CL
is
> too big and scary for me to review.  You're welcome to find someone else to
> review it, but if you'd like me to review it, you're going to need to break it
> down into smaller pieces that are easier to understand.

I see. I will divide this CL into smaller CLs.

Powered by Google App Engine
This is Rietveld 408576698