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

Issue 2628333003: Cancel URLRequest with an appropriate code when WebSocket handshake succeeds (Closed)

Created:
3 years, 11 months ago by yhirano
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cancel URLRequest with an appropriate code when WebSocket handshake succeeds To notify the NetworkDelegate of WebSocket handshake success explicitly, this CL introduces a new net error and cancels the URLRequest with it. BUG=663672 Review-Url: https://codereview.chromium.org/2628333003 Cr-Commit-Position: refs/heads/master@{#444523} Committed: https://chromium.googlesource.com/chromium/src/+/96205c442a254bfedf737c97f836c7bfd1973d29

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : fix #

Patch Set 4 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M net/base/net_error_list.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M net/websockets/websocket_stream.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M net/websockets/websocket_stream_test.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M net/websockets/websocket_test_util.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (20 generated)
yhirano
+ricea@ for general review. pkalinnikov@, is this what you want?
3 years, 11 months ago (2017-01-13 10:45:16 UTC) #10
Adam Rice
lgtm https://codereview.chromium.org/2628333003/diff/60001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/2628333003/diff/60001/net/websockets/websocket_stream.cc#newcode156 net/websockets/websocket_stream.cc:156: // This is safe even if |this| has ...
3 years, 11 months ago (2017-01-13 11:08:45 UTC) #11
yhirano
https://codereview.chromium.org/2628333003/diff/60001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/2628333003/diff/60001/net/websockets/websocket_stream.cc#newcode156 net/websockets/websocket_stream.cc:156: // This is safe even if |this| has been ...
3 years, 11 months ago (2017-01-13 11:15:50 UTC) #16
pkalinnikov
LGTM. Yes, this should be enough.
3 years, 11 months ago (2017-01-13 11:37:42 UTC) #17
yhirano
+davidben@ for net/base/net_error_list.h
3 years, 11 months ago (2017-01-13 12:22:25 UTC) #21
yhirano
davidben@, can you take a look?
3 years, 11 months ago (2017-01-18 16:32:02 UTC) #22
davidben
Apologies, I somehow missed this. lgtm.
3 years, 11 months ago (2017-01-18 18:55:45 UTC) #23
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/2628333003/100001
3 years, 11 months ago (2017-01-18 19:51:01 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 22:45:57 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/96205c442a254bfedf737c97f836...

Powered by Google App Engine
This is Rietveld 408576698