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

Side by Side Diff: client/registration_protocol_win.h

Issue 1126783004: Introduce RegistrationServer. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Implement pipe client PID detection. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #ifndef CRASHPAD_CLIENT_REGISTRATION_PROTOCOL_WIN_H_
16 #define CRASHPAD_CLIENT_REGISTRATION_PROTOCOL_WIN_H_
17
18 #include <windows.h>
19 #include "util/win/address_types.h"
scottmg 2015/05/20 18:53:09 Blank line before.
erikwright (departed) 2015/05/20 20:54:13 Done.
20
21 namespace crashpad {
22
23 //! \brief A client registration request.
24 struct RegistrationRequest {
25 //! \brief The PID of the client process.
26 DWORD client_process_id;
27 //! \brief The address, in the client process address space, of a CrashpadInfo
28 //! structure.
29 crashpad::WinVMAddress crashpad_info_address;
scottmg 2015/05/20 18:53:09 We should either pragma pack 1 this header, or mov
erikwright (departed) 2015/05/20 20:54:13 Done. I did it separately for each structure to av
30 };
31
32 //! \brief A client registration response.
33 struct RegistrationResponse {
34 //! \brief An event handle, valid in the client process, that should be
35 //! signaled to request a crash report.
36 HANDLE request_report_event;
scottmg 2015/05/20 18:53:09 Will these HANDLEs work correctly when the crash r
erikwright (departed) 2015/05/20 20:54:13 From MSDN (https://msdn.microsoft.com/en-us/librar
scottmg 2015/05/21 02:32:36 HANDLEs have only 32 significant bits for both x64
erikwright (departed) 2015/05/21 15:12:37 Yes you are correct. I thought about declaring som
37 //! \brief An event handle, valid in the client process, that will be signaled
38 //! when the requested crash report is complete.
39 HANDLE report_complete_event;
40 };
41
42 } // namespace crashpad
43
44 #endif // CRASHPAD_CLIENT_REGISTRATION_PROTOCOL_WIN_H_
OLDNEW
« no previous file with comments | « client/client.gyp ('k') | crashpad.gyp » ('j') | handler/handler.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698