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

Issue 1852423004: Implement SpdySerializedFrame move semantics. (Closed)

Created:
4 years, 8 months ago by Bence
Modified:
4 years, 8 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement SpdySerializedFrame move semantics. * Rename SpdyFrame to SpdySerializedFrame everywhere. (It was already called that at a number of places.) Remove typedef. * Add move constructor and move assignment operator. * Change return value from SpdySerializedFrame* to SpdySerializedFrame for SpdyFramer methods and SpdyFrameBuilder::take(). * Remove scoped_ptr.get() == nullptr checks which could never possibly be true anyway. * Merge SpdySerializedFrame instantiation and assignment in a few tests (except where lifetime requirements would not allow it.) * Remove declaration of undefined, unused method SpdyFramer::CompressFrame(). * Remove unused variable |uncompressed| from SpdyFramerTest.Basic. * git clang-format. This cuts down on SpdySerializedFrame allocations, and also trigger compiler errors for unused local variables. (Unused scoped_ptr<>'s like |uncompressed| did not trigger an error.) This is a minimal CL to land server change 117967994 by bnc. It will be followed up by other CLs moving instances of SpdySerializedFramer from heap to stack. BUG=488484, 600438 Committed: https://crrev.com/b03b109170504bbf5cea0a33327574196bc21c76 Cr-Commit-Position: refs/heads/master@{#385436}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2441 lines, -2262 lines) Patch
M net/http/bidirectional_stream_unittest.cc View 22 chunks +62 lines, -58 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 50 chunks +218 lines, -199 lines 0 comments Download
M net/http/http_proxy_client_socket_pool_unittest.cc View 8 chunks +19 lines, -18 lines 0 comments Download
M net/quic/quic_headers_stream.cc View 2 chunks +6 lines, -8 lines 0 comments Download
M net/quic/quic_headers_stream_test.cc View 8 chunks +50 lines, -51 lines 0 comments Download
M net/quic/spdy_utils.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/quic/test_tools/quic_test_packet_maker.cc View 2 chunks +14 lines, -14 lines 0 comments Download
M net/spdy/buffered_spdy_framer.h View 2 chunks +30 lines, -30 lines 0 comments Download
M net/spdy/buffered_spdy_framer.cc View 5 chunks +25 lines, -24 lines 0 comments Download
M net/spdy/buffered_spdy_framer_unittest.cc View 7 chunks +20 lines, -22 lines 0 comments Download
M net/spdy/spdy_buffer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M net/spdy/spdy_buffer.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M net/spdy/spdy_buffer_unittest.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M net/spdy/spdy_frame_builder.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_frame_builder_test.cc View 4 chunks +12 lines, -12 lines 0 comments Download
M net/spdy/spdy_framer.h View 4 chunks +18 lines, -25 lines 0 comments Download
M net/spdy/spdy_framer.cc View 19 chunks +41 lines, -41 lines 0 comments Download
M net/spdy/spdy_framer_test.cc View 141 chunks +385 lines, -448 lines 0 comments Download
M net/spdy/spdy_http_stream_unittest.cc View 9 chunks +51 lines, -34 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 123 chunks +693 lines, -553 lines 0 comments Download
M net/spdy/spdy_protocol.h View 3 chunks +35 lines, -25 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 39 chunks +123 lines, -120 lines 0 comments Download
M net/spdy/spdy_session.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 12 chunks +22 lines, -22 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session_unittest.cc View 77 chunks +221 lines, -195 lines 0 comments Download
M net/spdy/spdy_stream.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_stream.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_stream_unittest.cc View 14 chunks +74 lines, -79 lines 0 comments Download
M net/spdy/spdy_test_util_common.h View 6 chunks +125 lines, -116 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 21 chunks +152 lines, -121 lines 0 comments Download
M net/spdy/spdy_test_utils.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_test_utils.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_write_queue_unittest.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M net/tools/flip_server/spdy_interface.cc View 6 chunks +9 lines, -7 lines 0 comments Download
M net/tools/flip_server/spdy_interface_test.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
Bence
Ryan: PTAL. Thank you.
4 years, 8 months ago (2016-04-05 16:46:27 UTC) #2
Ryan Hamilton
lgtm
4 years, 8 months ago (2016-04-06 04:33:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852423004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852423004/1
4 years, 8 months ago (2016-04-06 11:14:29 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-06 11:20:08 UTC) #6
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 11:21:30 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b03b109170504bbf5cea0a33327574196bc21c76
Cr-Commit-Position: refs/heads/master@{#385436}

Powered by Google App Engine
This is Rietveld 408576698