|
[SPDY] Refactor SpdyStream's handling of response headers
Rename OnResponseHeadersReceived() to
OnResponseHeadersUpdated() and remove some of
its extraneous parameters. Document its semantics and that
of the other delegate functions.
Fix bug in PushedStreamReplayData() where the stream being
closed/deleted wasn't handled correctly. Also fix memory leaks
of the pending frames.
Use continue_buffering_data_ only for push streams.
Rename request_/response_ to request_headers_/response_headers_.
Keep track of whether all required response headers are complete,
and send data to the delegate only after that becomes true.
Rename OnResponseHeadersReceived() and OnHeaders() to
On{Initial,Additional}ResponseHeadersReceived(), respectively.
Add MergeWithResponseHeaders() utility function and call it
from On{Initial,Additional}ResponseHeadersReceived(). Always convert
ERR_INCOMPLETE_SPDY_HEADERS to OK for push streams.
Rename ContainsUpperAscii() (ambiguous) to ContainsUppercaseAscii().
Move some tests from SpdyNetworkTransaction to SpdyStream.
Some other miscellaneous renaming and cleanup.
BUG= 251442
R=rch@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208169
Total comments: 20
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+745 lines, -531 lines) |
Patch |
 |
M |
net/spdy/spdy_http_stream.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_http_stream.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+16 lines, -32 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_http_utils.cc
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_network_transaction_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+1 line, -183 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_proxy_client_socket.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_proxy_client_socket.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session.cc
|
View
|
1
2
3
4
5
|
7 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_stream.h
|
View
|
1
2
3
4
5
6
|
11 chunks |
+124 lines, -47 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_stream.cc
|
View
|
1
2
3
4
5
|
16 chunks |
+164 lines, -154 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_stream_test_util.h
|
View
|
1
2
3
|
5 chunks |
+10 lines, -13 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_stream_test_util.cc
|
View
|
1
2
3
|
4 chunks |
+16 lines, -25 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_stream_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+352 lines, -11 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_websocket_stream.h
|
View
|
1
2
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_websocket_stream.cc
|
View
|
1
2
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_websocket_stream_spdy2_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_websocket_stream_spdy3_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/websockets/websocket_job.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/websockets/websocket_job.cc
|
View
|
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|