|
|
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}
|
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
|
Total messages: 8 (3 generated)
|