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

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

Issue 1422503015: win: Add HandleToInt() and IntToHandle() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Add a comment about the choice of int over unsigned int Created 5 years, 1 month 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/process_info_test.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 kShutdown, 86 kShutdown,
87 } type; 87 } type;
88 88
89 union { 89 union {
90 RegistrationRequest registration; 90 RegistrationRequest registration;
91 ShutdownRequest shutdown; 91 ShutdownRequest shutdown;
92 }; 92 };
93 }; 93 };
94 94
95 //! \brief A client registration response. 95 //! \brief A client registration response.
96 //!
97 //! See <a
98 //! href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203">Int erprocess
99 //! Communication Between 32-bit and 64-bit Applications</a> for details on
100 //! communicating handle values between processes of varying bitness.
101 struct RegistrationResponse { 96 struct RegistrationResponse {
102 //! \brief An event `HANDLE`, valid in the client process, that should be 97 //! \brief An event `HANDLE`, valid in the client process, that should be
103 //! signaled to request a crash report. 64-bit clients should convert the 98 //! signaled to request a crash report. 64-bit clients should convert the
104 //! value to a `HANDLE` using sign-extension. 99 //! value to a `HANDLE` using sign-extension.
105 uint32_t request_crash_dump_event; 100 uint32_t request_crash_dump_event;
106 101
107 //! \brief An event `HANDLE`, valid in the client process, that should be 102 //! \brief An event `HANDLE`, valid in the client process, that should be
108 //! signaled to request a non-crashing dump be taken. 64-bit clients 103 //! signaled to request a non-crashing dump be taken. 64-bit clients
109 //! should convert the value to `HANDLEEE` using sign-extension. 104 //! should convert the value to `HANDLEEE` using sign-extension.
110 uint32_t request_non_crash_dump_event; 105 uint32_t request_non_crash_dump_event;
(...skipping 18 matching lines...) Expand all
129 //! CrashpadClient::SetHandler(). 124 //! CrashpadClient::SetHandler().
130 //! 125 //!
131 //! \sa CrashpadClient::SetHandler() 126 //! \sa CrashpadClient::SetHandler()
132 bool SendToCrashHandlerServer(const base::string16& pipe_name, 127 bool SendToCrashHandlerServer(const base::string16& pipe_name,
133 const ClientToServerMessage& message, 128 const ClientToServerMessage& message,
134 ServerToClientMessage* response); 129 ServerToClientMessage* response);
135 130
136 } // namespace crashpad 131 } // namespace crashpad
137 132
138 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_ 133 #endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_
OLDNEW
« no previous file with comments | « util/win/process_info_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698