|
Implement SpdyMakeUnique and SpdyWrapUnique.
spdy/platform/*/spdy_ptr_util{,_impl}.h are almost verbatim copies of
quic/platform/*/quic_ptr_util{,_impl}.h. Note "util" versus "utils" in
the filenames, despite some other headers are pluralized: this is for
consistency with //net/quic/platform/quic_ptr_util and
//base/memory/ptr_util.h.
(Also note that quic/platform/*/quic_ptr_util{,_impl}.h incorrectly uses
std::move in return, which potentially prevents return value
optimization, so I'm not doing it here.)
Also change most naked new's to SpdyMakeUnique, because clearly, naked
new is the devil itself. And add #include <new> for most remaining new
(except for the ones that I plan to remove in the near future).
This CL lands server change 153775072 by bnc.
BUG= 488484
Review-Url: https://codereview.chromium.org/2840563003
Cr-Commit-Position: refs/heads/master@{#467665}
Committed: https://chromium.googlesource.com/chromium/src/+/dae95a8d511966759752f89b3a822838e6292a6f
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+139 lines, -66 lines) |
Patch |
 |
M |
net/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/fuzzing/hpack_fuzz_util.cc
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/hpack/hpack_constants.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/hpack/hpack_encoder.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/http2_frame_decoder_adapter.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/mock_spdy_framer_visitor.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_deframer_visitor.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_deframer_visitor.cc
|
View
|
|
15 chunks |
+28 lines, -24 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_deframer_visitor_test.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_frame_builder.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_framer.cc
|
View
|
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_framer_decoder_adapter.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_framer_test.cc
|
View
|
|
13 chunks |
+15 lines, -13 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_header_block.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_header_indexing_test.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_pinnable_buffer_piece.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_prefixed_buffer_reader.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_protocol.h
|
View
|
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_protocol.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/spdy/core/spdy_test_utils.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
net/spdy/platform/api/spdy_ptr_util.h
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/spdy/platform/impl/spdy_ptr_util_impl.h
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
Total messages: 19 (11 generated)
|