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

Issue 2541093003: Instrument SSL sockets using MemoryDumpProvider (Closed)

Created:
4 years ago by xunjieli
Modified:
4 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Instrument SSL sockets using MemoryDumpProvider This CL instruments SSL sockets and SSL session cache using MemoryDumpProvider. Design doc is linked in the crbug. BUG=669108 Committed: https://crrev.com/9f8c5fb56da88f719d36423e58e8f9f89b32d542 Cr-Commit-Position: refs/heads/master@{#437097}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Address Eric's comments about layering violation #

Patch Set 4 : self review #

Total comments: 4

Patch Set 5 : Address comments and added two tests #

Patch Set 6 : Address Sid comment to pass PMD instead of MAD #

Patch Set 7 : Self review #

Patch Set 8 : rebased #

Total comments: 28

Patch Set 9 : Address davidben and primiano comments #

Total comments: 8

Patch Set 10 : Address davidben comments #

Patch Set 11 : self review #

Patch Set 12 : Fix flaky test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -5 lines) Patch
M net/http/http_network_session.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 5 6 7 8 9 2 chunks +26 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base.h View 1 2 3 4 5 3 chunks +13 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_manager.h View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_manager.cc View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool_manager_impl.h View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_manager_impl.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket/mock_client_socket_pool_manager.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M net/socket/mock_client_socket_pool_manager.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/socket_bio_adapter.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/socket_bio_adapter.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_impl.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +47 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +64 lines, -0 lines 0 comments Download
M net/socket/stream_socket.h View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M net/ssl/ssl_client_session_cache.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M net/ssl/ssl_client_session_cache.cc View 1 2 3 4 5 6 7 8 9 2 chunks +43 lines, -0 lines 0 comments Download
M net/ssl/ssl_client_session_cache_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +38 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_unittest.cc View 1 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 40 (22 generated)
xunjieli
Hi Eric and David, PTAL. Thanks! Hopefully this is easier for review. Currently I only ...
4 years ago (2016-12-01 23:26:14 UTC) #4
eroman
I suggest removing the reference to the (uncommitted) codereview from the CL description. That reference ...
4 years ago (2016-12-02 00:27:24 UTC) #5
xunjieli
Thanks! PTAL https://codereview.chromium.org/2541093003/diff/60001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/2541093003/diff/60001/net/socket/client_socket_pool_base.cc#newcode709 net/socket/client_socket_pool_base.cc:709: const std::list<IdleSocket> sockets = it->second->idle_sockets(); On 2016/12/02 ...
4 years ago (2016-12-02 15:31:34 UTC) #7
xunjieli
+ ssid@: I have addressed your comment to use PMD + parent absolute name approach ...
4 years ago (2016-12-02 23:09:43 UTC) #9
xunjieli
+ primiano@ Primiano: Sid is out. Could you take a look at the CL?
4 years ago (2016-12-05 17:49:48 UTC) #11
davidben
Sorry about the delay. I kept getting side-tracked today. Just looked at the SSL-related files: ...
4 years ago (2016-12-06 01:02:07 UTC) #16
Primiano Tucci (use gerrit)
> Primiano: Sid is out. Could you take a look at the CL? Sure. I ...
4 years ago (2016-12-06 17:06:28 UTC) #17
xunjieli
Thanks a lot for the reviews! I have uploaded a new patch to address the ...
4 years ago (2016-12-06 18:36:09 UTC) #18
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2541093003/diff/140001/net/http/http_network_session.cc File net/http/http_network_session.cc (right): https://codereview.chromium.org/2541093003/diff/140001/net/http/http_network_session.cc#newcode394 net/http/http_network_session.cc:394: pmd->AddOwnershipEdge(pmd->GetAllocatorDump(parent_absolute_name)->guid(), On 2016/12/06 18:36:08, xunjieli wrote: > On 2016/12/06 ...
4 years ago (2016-12-06 20:15:41 UTC) #23
xunjieli
https://codereview.chromium.org/2541093003/diff/140001/net/http/http_network_session.cc File net/http/http_network_session.cc (right): https://codereview.chromium.org/2541093003/diff/140001/net/http/http_network_session.cc#newcode394 net/http/http_network_session.cc:394: pmd->AddOwnershipEdge(pmd->GetAllocatorDump(parent_absolute_name)->guid(), On 2016/12/06 20:15:41, Primiano Tucci wrote: > On ...
4 years ago (2016-12-06 21:22:12 UTC) #24
xunjieli
Hi Eric and David, this CL is ready for a second round of review. Thank ...
4 years ago (2016-12-07 14:50:22 UTC) #25
davidben
SSL-related files lgtm with minor comments. https://codereview.chromium.org/2541093003/diff/160001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2541093003/diff/160001/net/socket/ssl_client_socket_impl.cc#newcode838 net/socket/ssl_client_socket_impl.cc:838: socket_dump->AddScalar("serialized_cert_count", Probably just ...
4 years ago (2016-12-07 19:42:59 UTC) #26
xunjieli
David, I have one question below. PTAL. https://codereview.chromium.org/2541093003/diff/160001/net/socket/ssl_client_socket_impl.cc File net/socket/ssl_client_socket_impl.cc (right): https://codereview.chromium.org/2541093003/diff/160001/net/socket/ssl_client_socket_impl.cc#newcode838 net/socket/ssl_client_socket_impl.cc:838: socket_dump->AddScalar("serialized_cert_count", On ...
4 years ago (2016-12-07 20:32:25 UTC) #27
eroman
lgtm
4 years ago (2016-12-07 21:16:01 UTC) #28
xunjieli
Thanks David for identifying the flaky SSLClientSocket::DumpMemoryStats test and the suggestion for how to fix ...
4 years ago (2016-12-07 21:27:45 UTC) #31
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/2541093003/220001
4 years ago (2016-12-07 22:07:38 UTC) #35
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years ago (2016-12-07 23:00:02 UTC) #38
commit-bot: I haz the power
4 years ago (2016-12-07 23:03:53 UTC) #40
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/9f8c5fb56da88f719d36423e58e8f9f89b32d542
Cr-Commit-Position: refs/heads/master@{#437097}

Powered by Google App Engine
This is Rietveld 408576698