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

Issue 1126783004: Introduce RegistrationServer. (Closed)

Created:
5 years, 7 months ago by erikwright (departed)
Modified:
5 years, 7 months ago
CC:
crashpad-dev_chromium.org, cpu_(ooo_6.6-7.5), Sigurður Ásgeirsson, robertshield
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Introduce RegistrationServer, which implements a Crashpad client registration protocol for Windows. BUG= R=cpu@chromium.org, scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/9ff3d9335fd0a8e3b9e84e88d565945acdb2fa94

Patch Set 1 #

Total comments: 51

Patch Set 2 : Add a test, move Thread. #

Patch Set 3 : Extract thread move. #

Patch Set 4 : Further refinements. #

Patch Set 5 : More tweaks. #

Patch Set 6 : Working, with tests. #

Patch Set 7 : Tweaks. #

Patch Set 8 : Implement pipe client PID detection. #

Total comments: 70

Patch Set 9 : Review comments. #

Patch Set 10 : Review comments. #

Patch Set 11 : Review comments. #

Total comments: 17

Patch Set 12 : Review feedback. #

Total comments: 6

Patch Set 13 : Review feedback. #

Patch Set 14 : Fix .gyp for POSIX. #

Total comments: 12

Patch Set 15 : Tidying up. #

Patch Set 16 : Refactoring, additional coverage, bug fix. #

Patch Set 17 : Add comments, tidy. #

Total comments: 13

Patch Set 18 : Review feedback. #

Total comments: 1

Patch Set 19 : One extra comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1562 lines, -0 lines) Patch
M build/run_tests.py View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M client/client.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A client/registration_protocol_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +55 lines, -0 lines 0 comments Download
M crashpad.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M handler/handler.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +22 lines, -0 lines 0 comments Download
A handler/handler_test.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +48 lines, -0 lines 0 comments Download
A handler/win/registration_pipe_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +112 lines, -0 lines 0 comments Download
A handler/win/registration_pipe_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +289 lines, -0 lines 0 comments Download
A handler/win/registration_pipe_state_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +259 lines, -0 lines 0 comments Download
A handler/win/registration_server.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +83 lines, -0 lines 0 comments Download
A handler/win/registration_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +136 lines, -0 lines 0 comments Download
A handler/win/registration_server_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +271 lines, -0 lines 0 comments Download
A handler/win/registration_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +114 lines, -0 lines 0 comments Download
A handler/win/registration_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +166 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (3 generated)
erikwright (departed)
Mark: PTAL. I will add tests, but first I want to get some feedback on ...
5 years, 7 months ago (2015-05-05 18:46:26 UTC) #2
Mark Mentovai
+scott too. He’s very familiar with Crashpad code and style. https://codereview.chromium.org/1126783004/diff/1/client/registration_request_win.h File client/registration_request_win.h (right): https://codereview.chromium.org/1126783004/diff/1/client/registration_request_win.h#newcode1 ...
5 years, 7 months ago (2015-05-05 20:20:34 UTC) #4
scottmg
https://codereview.chromium.org/1126783004/diff/1/handler/win/registration_server.h File handler/win/registration_server.h (right): https://codereview.chromium.org/1126783004/diff/1/handler/win/registration_server.h#newcode32 handler/win/registration_server.h:32: //! \brief Handles registration requests. Please add something high ...
5 years, 7 months ago (2015-05-05 21:12:27 UTC) #5
erikwright (departed)
Scott: PTAL. https://codereview.chromium.org/1126783004/diff/1/client/registration_response_win.h File client/registration_response_win.h (right): https://codereview.chromium.org/1126783004/diff/1/client/registration_response_win.h#newcode22 client/registration_response_win.h:22: struct RegistrationResponse { On 2015/05/05 20:20:33, Mark ...
5 years, 7 months ago (2015-05-20 17:10:16 UTC) #6
scottmg
Good stuff! +cpu to look at details of pipe stuff in second half of handler/win/registration_server.cc ...
5 years, 7 months ago (2015-05-20 18:53:10 UTC) #8
erikwright (departed)
scott, cpu: PTAL. https://codereview.chromium.org/1126783004/diff/140001/client/registration_protocol_win.h File client/registration_protocol_win.h (right): https://codereview.chromium.org/1126783004/diff/140001/client/registration_protocol_win.h#newcode19 client/registration_protocol_win.h:19: #include "util/win/address_types.h" On 2015/05/20 18:53:09, scottmg ...
5 years, 7 months ago (2015-05-20 20:54:15 UTC) #9
scottmg
https://codereview.chromium.org/1126783004/diff/140001/client/registration_protocol_win.h File client/registration_protocol_win.h (right): https://codereview.chromium.org/1126783004/diff/140001/client/registration_protocol_win.h#newcode36 client/registration_protocol_win.h:36: HANDLE request_report_event; On 2015/05/20 20:54:13, erikwright wrote: > On ...
5 years, 7 months ago (2015-05-21 02:32:37 UTC) #10
erikwright (departed)
Scott: PTAL. https://codereview.chromium.org/1126783004/diff/140001/client/registration_protocol_win.h File client/registration_protocol_win.h (right): https://codereview.chromium.org/1126783004/diff/140001/client/registration_protocol_win.h#newcode36 client/registration_protocol_win.h:36: HANDLE request_report_event; On 2015/05/21 02:32:36, scottmg wrote: ...
5 years, 7 months ago (2015-05-21 15:12:38 UTC) #11
scottmg
LGTM Please let cpu have a quick look at the pipe registration stuff before landing. ...
5 years, 7 months ago (2015-05-21 16:17:35 UTC) #12
erikwright (departed)
Carlos: PTAL.
5 years, 7 months ago (2015-05-21 20:04:07 UTC) #13
cpu_(ooo_6.6-7.5)
I was hoping to avoid the state machine by being synchronous. From what I follow ...
5 years, 7 months ago (2015-05-21 22:16:29 UTC) #14
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/1126783004/diff/260001/handler/win/registration_server.cc File handler/win/registration_server.cc (right): https://codereview.chromium.org/1126783004/diff/260001/handler/win/registration_server.cc#newcode398 handler/win/registration_server.cc:398: while (true) { we also lost the ability to ...
5 years, 7 months ago (2015-05-21 22:55:58 UTC) #15
erikwright (departed)
With regards to the concerns about stability of the async approach in Breakpad: (1) The ...
5 years, 7 months ago (2015-05-22 01:22:04 UTC) #16
cpu_(ooo_6.6-7.5)
I still feel a bit uneasy on the overlapped lifetime but I don't have a ...
5 years, 7 months ago (2015-05-22 15:16:05 UTC) #17
erikwright (departed)
cpu: Please at least OK the following concepts: I found that WriteFile completes immediately, before ...
5 years, 7 months ago (2015-05-25 17:44:37 UTC) #18
erikwright (departed)
scottmg: Please review at least for code/comment style in the changes since patchset 15.
5 years, 7 months ago (2015-05-25 17:46:12 UTC) #19
scottmg
I'm concerned by the complexity in maintenance of all of the state involved here, but ...
5 years, 7 months ago (2015-05-25 18:41:54 UTC) #20
erikwright (departed)
https://codereview.chromium.org/1126783004/diff/230010/handler/win/registration_pipe_state_test.cc File handler/win/registration_pipe_state_test.cc (right): https://codereview.chromium.org/1126783004/diff/230010/handler/win/registration_pipe_state_test.cc#newcode79 handler/win/registration_pipe_state_test.cc:79: ASSERT_EQ(WAIT_OBJECT_0, On 2015/05/25 18:41:54, scottmg wrote: > It seems ...
5 years, 7 months ago (2015-05-25 18:54:23 UTC) #21
erikwright (departed)
On 2015/05/25 18:54:23, erikwright wrote: > https://codereview.chromium.org/1126783004/diff/230010/handler/win/registration_pipe_state_test.cc > File handler/win/registration_pipe_state_test.cc (right): > > https://codereview.chromium.org/1126783004/diff/230010/handler/win/registration_pipe_state_test.cc#newcode79 > ...
5 years, 7 months ago (2015-05-25 19:15:21 UTC) #22
scottmg
On 2015/05/25 19:15:21, erikwright wrote: > On 2015/05/25 18:54:23, erikwright wrote: > > > https://codereview.chromium.org/1126783004/diff/230010/handler/win/registration_pipe_state_test.cc ...
5 years, 7 months ago (2015-05-25 19:27:08 UTC) #23
scottmg
https://codereview.chromium.org/1126783004/diff/330001/client/registration_protocol_win.h File client/registration_protocol_win.h (right): https://codereview.chromium.org/1126783004/diff/330001/client/registration_protocol_win.h#newcode18 client/registration_protocol_win.h:18: #include <windows.h> This still needs sorting.
5 years, 7 months ago (2015-05-25 19:29:14 UTC) #24
scottmg
Please expand the CL description a little too, at least to mention that it's Windows-specific.
5 years, 7 months ago (2015-05-25 19:29:42 UTC) #25
erikwright (departed)
Sorry, somehow I sent a reply rather than mailing my draft comments. Please see my ...
5 years, 7 months ago (2015-05-25 19:42:12 UTC) #26
scottmg
https://codereview.chromium.org/1126783004/diff/230010/client/registration_protocol_win.h File client/registration_protocol_win.h (right): https://codereview.chromium.org/1126783004/diff/230010/client/registration_protocol_win.h#newcode18 client/registration_protocol_win.h:18: #include <windows.h> On 2015/05/25 19:42:12, erikwright wrote: > On ...
5 years, 7 months ago (2015-05-25 19:53:29 UTC) #27
erikwright (departed)
5 years, 7 months ago (2015-05-26 18:31:10 UTC) #28
Message was sent while issue was closed.
Committed patchset #19 (id:350001) manually as
9ff3d9335fd0a8e3b9e84e88d565945acdb2fa94 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698