diff options
author | cdn@chromium.org <cdn@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-04-13 22:20:30 +0000 |
---|---|---|
committer | cdn@chromium.org <cdn@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-04-13 22:20:30 +0000 |
commit | 9a3de4160b4808b89c367126027533323690915e (patch) | |
tree | 96d42ce81be9754abd8d4a3cf3718ab36e7abc1c /src/client/windows/common | |
parent | Fix file descriptor leaks in ExternalDumper test (diff) | |
download | breakpad-9a3de4160b4808b89c367126027533323690915e.tar.xz |
Expose a callback to allow crash server implementations to defer the uploading of crash dumps to a later time. The client can provide a crash_id when the dump is performed and then at a later time connect again and request that the crash id be uploaded triggering an implementation defined callback.
BUG=473
TEST=CrashGenerationServerTest.*
Review URL: https://breakpad.appspot.com/379001
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@952 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/windows/common')
-rw-r--r-- | src/client/windows/common/ipc_protocol.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/client/windows/common/ipc_protocol.h b/src/client/windows/common/ipc_protocol.h index 7d101d38..b03c032b 100644 --- a/src/client/windows/common/ipc_protocol.h +++ b/src/client/windows/common/ipc_protocol.h @@ -90,7 +90,8 @@ enum MessageTag { MESSAGE_TAG_NONE = 0, MESSAGE_TAG_REGISTRATION_REQUEST = 1, MESSAGE_TAG_REGISTRATION_RESPONSE = 2, - MESSAGE_TAG_REGISTRATION_ACK = 3 + MESSAGE_TAG_REGISTRATION_ACK = 3, + MESSAGE_TAG_UPLOAD_REQUEST = 4 }; struct CustomClientInfo { @@ -102,7 +103,7 @@ struct CustomClientInfo { struct ProtocolMessage { ProtocolMessage() : tag(MESSAGE_TAG_NONE), - pid(0), + id(0), dump_type(MiniDumpNormal), thread_id(0), exception_pointers(NULL), @@ -115,7 +116,7 @@ struct ProtocolMessage { // Creates an instance with the given parameters. ProtocolMessage(MessageTag arg_tag, - DWORD arg_pid, + DWORD arg_id, MINIDUMP_TYPE arg_dump_type, DWORD* arg_thread_id, EXCEPTION_POINTERS** arg_exception_pointers, @@ -125,7 +126,7 @@ struct ProtocolMessage { HANDLE arg_dump_generated_handle, HANDLE arg_server_alive) : tag(arg_tag), - pid(arg_pid), + id(arg_id), dump_type(arg_dump_type), thread_id(arg_thread_id), exception_pointers(arg_exception_pointers), @@ -139,8 +140,9 @@ struct ProtocolMessage { // Tag in the message. MessageTag tag; - // Process id. - DWORD pid; + // The id for this message. This may be either a process id or a crash id + // depending on the type of message. + DWORD id; // Dump type requested. MINIDUMP_TYPE dump_type; |