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

Issue 18546008: [SPDY] Use WeakPtr<SpdySession> everywhere but SpdySessionPool (Closed)

Created:
7 years, 5 months ago by akalin
Modified:
7 years, 5 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

[SPDY] Use WeakPtr<SpdySession> everywhere but SpdySessionPool Make SpdyHttpStream cache it's SPDY stream's LoadTimingInfo on close. Also, make SpdyHttpStream query SpdySession::IsReused() when it's constructed and cache the value, as that's closer to the intent of its use. Avoid uses of SpdySession::IsClosed() in non-test code and add TODO to remove uses from test code. This is more correct since testing the WeakPtr is a stronger condition than testing openness and SpdySession functions already do the right thing if the SpdySession is already closed. Tweak some tests that implicitly depended on having refs to SpdySession. BUG=255701 R=rch@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212858

Patch Set 1 #

Patch Set 2 : Add more assertions and comments #

Patch Set 3 : Rebase #

Patch Set 4 : Fix test, other minor formatting/comment changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -428 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 2 6 chunks +36 lines, -9 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 6 chunks +11 lines, -9 lines 0 comments Download
M net/http/http_stream_factory_impl_request.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl_request.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 5 chunks +20 lines, -13 lines 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_stream.h View 3 chunks +5 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 1 2 6 chunks +19 lines, -11 lines 0 comments Download
M net/spdy/spdy_http_stream_unittest.cc View 1 2 3 13 chunks +13 lines, -23 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 1 2 9 chunks +13 lines, -8 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 3 4 chunks +8 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 9 chunks +13 lines, -8 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 2 11 chunks +17 lines, -17 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 13 chunks +16 lines, -21 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 2 3 83 chunks +159 lines, -230 lines 0 comments Download
M net/spdy/spdy_stream.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_stream.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_stream_unittest.cc View 14 chunks +15 lines, -15 lines 0 comments Download
M net/spdy/spdy_test_util_common.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 2 7 chunks +8 lines, -8 lines 0 comments Download
M net/spdy/spdy_websocket_stream.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M net/spdy/spdy_websocket_stream.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_websocket_stream_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M net/spdy/spdy_write_queue_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/websockets/websocket_job.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M net/websockets/websocket_job_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/websockets/websocket_stream_base.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+rch for review
7 years, 5 months ago (2013-07-13 02:22:05 UTC) #1
Ryan Hamilton
lgtm! I'm not sure if we'll want to expose WeakPtr<SpdySession> publicly, but this is an ...
7 years, 5 months ago (2013-07-18 15:33:28 UTC) #2
akalin
Fixed a test (newly added by the previous CL), did some minor formatting and comment ...
7 years, 5 months ago (2013-07-22 07:04:49 UTC) #3
akalin
On 2013/07/22 07:04:49, akalin wrote: > Fixed a test (newly added by the previous CL), ...
7 years, 5 months ago (2013-07-22 07:05:45 UTC) #4
akalin
Committed patchset #4 manually as r212858 (presubmit successful).
7 years, 5 months ago (2013-07-22 09:37:40 UTC) #5
akalin
7 years, 5 months ago (2013-07-22 09:44:27 UTC) #6
Message was sent while issue was closed.
On 2013/07/22 09:37:40, akalin wrote:
> Committed patchset #4 manually as r212858 (presubmit successful).

Ugh, I must have been looking at the wrong CL page -- I thought the trybots were
green.

I guess I'll keep an eye and will revert if it breaks the tree.

Powered by Google App Engine
This is Rietveld 408576698