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

Unified Diff: third_party/crashpad/crashpad/util/win/registration_protocol_win.h

Issue 2478633002: Update Crashpad to b47bf6c250c6b825dee1c5fbad9152c2c962e828 (Closed)
Patch Set: mac comment 2 Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/util/win/registration_protocol_win.h
diff --git a/third_party/crashpad/crashpad/util/win/registration_protocol_win.h b/third_party/crashpad/crashpad/util/win/registration_protocol_win.h
index c57c6e20544a8a0baea3a85e35be80ff7745aa1f..122098358b86b8cd2ae40e818d1f4a1d32510c90 100644
--- a/third_party/crashpad/crashpad/util/win/registration_protocol_win.h
+++ b/third_party/crashpad/crashpad/util/win/registration_protocol_win.h
@@ -82,8 +82,14 @@ struct ClientToServerMessage {
enum Type : uint32_t {
//! \brief For RegistrationRequest.
kRegister,
+
//! \brief For ShutdownRequest.
kShutdown,
+
+ //! \brief An empty message sent by the initial client in asynchronous mode.
+ //! No data is required, this just confirms that the server is ready to
+ //! accept client registrations.
+ kPing,
} type;
union {
@@ -128,6 +134,17 @@ bool SendToCrashHandlerServer(const base::string16& pipe_name,
const ClientToServerMessage& message,
ServerToClientMessage* response);
+//! \brief Wraps CreateNamedPipe() to create a single named pipe instance.
+//!
+//! \param[in] pipe_name The name to use for the pipe.
+//! \param[in] first_instance If `true`, the named pipe instance will be
+//! created with `FILE_FLAG_FIRST_PIPE_INSTANCE`. This ensures that the the
+//! pipe name is not already in use when created. The first instance will be
+//! created with an untrusted integrity SACL so instances of this pipe can
+//! be connected to by processes of any integrity level.
+HANDLE CreateNamedPipeInstance(const std::wstring& pipe_name,
+ bool first_instance);
+
} // namespace crashpad
#endif // CRASHPAD_UTIL_WIN_REGISTRATION_PROTOCOL_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698