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

Issue 2840563003: Implement SpdyMakeUnique and SpdyWrapUnique. (Closed)

Created:
3 years, 8 months ago by Bence
Modified:
3 years, 7 months ago
Reviewers:
Biren Roy, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org, fuzzing_chromium.org, bnc+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

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

Messages

Total messages: 19 (11 generated)
Bence
Biren: PTAL. Thank you.
3 years, 8 months ago (2017-04-25 09:57:56 UTC) #6
Biren Roy
lgtm
3 years, 8 months ago (2017-04-26 18:25:31 UTC) #7
Bence
xunjieli: please rubber stamp. Per your earlier request, a presubmit test is on the way. ...
3 years, 8 months ago (2017-04-26 19:03:53 UTC) #9
xunjieli
On 2017/04/26 19:03:53, Bence wrote: > xunjieli: please rubber stamp. Per your earlier request, a ...
3 years, 8 months ago (2017-04-26 21:10:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2840563003/1
3 years, 8 months ago (2017-04-26 23:08:58 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/280631)
3 years, 8 months ago (2017-04-27 02:59:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2840563003/1
3 years, 7 months ago (2017-04-27 13:57:46 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 14:05:30 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/dae95a8d511966759752f89b3a82...

Powered by Google App Engine
This is Rietveld 408576698