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

Issue 2339433004: Use unique_ptrs to manage callback lifetimes in some QUIC code (Closed)

Created:
4 years, 3 months ago by Ryan Hamilton
Modified:
4 years, 3 months ago
Reviewers:
Zhongyi Shi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use unique_ptrs to manage callback lifetimes in some QUIC code Follow-up to cl/132102408. This CL eliminates the self-deleting callback pattern from a chunk of QUIC code and replaces it with explicit unique_ptr ownership of all callbacks. Replace self-deleting callbacks with unique_ptr owned callbacks in some QUIC code. No functional change intended, not flag-protected. Merge internal change: 132439857

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -71 lines) Patch
M net/quic/core/crypto/crypto_server_test.cc View 5 chunks +10 lines, -6 lines 2 comments Download
M net/quic/core/crypto/quic_crypto_server_config.h View 6 chunks +15 lines, -17 lines 0 comments Download
M net/quic/core/crypto/quic_crypto_server_config.cc View 18 chunks +22 lines, -29 lines 0 comments Download
M net/quic/core/quic_crypto_server_stream.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/quic/core/quic_crypto_server_stream.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils_test.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M net/tools/quic/stateless_rejector.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 5 (1 generated)
Ryan Hamilton
4 years, 3 months ago (2016-09-13 20:30:38 UTC) #2
Zhongyi Shi
The stateless_rejector.cc in the internal code is under quic/core/. I am surprised to see it's ...
4 years, 3 months ago (2016-09-13 21:13:21 UTC) #3
Ryan Hamilton
https://codereview.chromium.org/2339433004/diff/1/net/quic/core/crypto/crypto_server_test.cc File net/quic/core/crypto/crypto_server_test.cc (right): https://codereview.chromium.org/2339433004/diff/1/net/quic/core/crypto/crypto_server_test.cc#newcode1158 net/quic/core/crypto/crypto_server_test.cc:1158: On 2016/09/13 21:13:21, Zhongyi Shi wrote: > This code ...
4 years, 3 months ago (2016-09-13 21:26:04 UTC) #4
Zhongyi Shi
4 years, 3 months ago (2016-09-13 21:30:26 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698