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

Side by Side Diff: util/win/registration_protocol_win.h

Issue 1314683008: win: Add version to client registration request (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « util/win/exception_handler_server.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with 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 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 20 matching lines...) Expand all
31 //! \brief The address of an EXCEPTION_POINTERS structure in the client 31 //! \brief The address of an EXCEPTION_POINTERS structure in the client
32 //! process that describes the exception. 32 //! process that describes the exception.
33 WinVMAddress exception_pointers; 33 WinVMAddress exception_pointers;
34 34
35 //! \brief The thread on which the exception happened. 35 //! \brief The thread on which the exception happened.
36 DWORD thread_id; 36 DWORD thread_id;
37 }; 37 };
38 38
39 //! \brief A client registration request. 39 //! \brief A client registration request.
40 struct RegistrationRequest { 40 struct RegistrationRequest {
41 //! \brief The expected value of `version`. This should be changed whenever
42 //! the messages or ExceptionInformation are modified incompatibly.
43 enum { kMessageVersion = 1 };
44
45 //! \brief Version field to detect skew between client and server. Should be
46 //! set to kMessageVersion.
47 int version;
48
49 //! \brief The PID of the client process.
50 DWORD client_process_id;
Mark Mentovai 2015/09/04 16:05:55 Nice repacking. :)
scottmg 2015/09/04 18:50:00 Tell me 20 or 30 times and eventually I remember.
51
41 //! \brief The address, in the client process address space, of an 52 //! \brief The address, in the client process address space, of an
42 //! ExceptionInformation structure. 53 //! ExceptionInformation structure.
43 WinVMAddress exception_information; 54 WinVMAddress exception_information;
44
45 //! \brief The PID of the client process.
46 DWORD client_process_id;
47 }; 55 };
48 56
49 //! \brief A message only sent to the server by itself to trigger shutdown. 57 //! \brief A message only sent to the server by itself to trigger shutdown.
50 struct ShutdownRequest { 58 struct ShutdownRequest {
51 //! \brief A randomly generated token used to validate the the shutdown 59 //! \brief A randomly generated token used to validate the the shutdown
52 //! request was not sent from another process. 60 //! request was not sent from another process.
53 uint64_t token; 61 uint64_t token;
54 }; 62 };
55 63
56 //! \brief The message passed from client to server by 64 //! \brief The message passed from client to server by
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 //! CrashpadClient::SetHandler(). 105 //! CrashpadClient::SetHandler().
98 //! 106 //!
99 //! \sa CrashpadClient::SetHandler() 107 //! \sa CrashpadClient::SetHandler()
100 bool SendToCrashHandlerServer(const base::string16& pipe_name, 108 bool SendToCrashHandlerServer(const base::string16& pipe_name,
101 const ClientToServerMessage& message, 109 const ClientToServerMessage& message,
102 ServerToClientMessage* response); 110 ServerToClientMessage* response);
103 111
104 } // namespace crashpad 112 } // namespace crashpad
105 113
106 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_ 114 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_
OLDNEW
« no previous file with comments | « util/win/exception_handler_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698