30 #ifndef GOOGLE_BREAKPAD_CLIENT_MAC_CRASH_GENERATION_CRASH_GENERATION_SERVER_H_ 31 #define GOOGLE_BREAKPAD_CLIENT_MAC_CRASH_GENERATION_CRASH_GENERATION_SERVER_H_ 62 typedef void (*OnClientDumpRequestCallback)(
void *context,
64 const std::string &file_path);
66 typedef void (*OnClientExitingCallback)(
void *context,
69 typedef bool (*FilterCallback)(
void *context);
87 FilterCallback filter,
89 OnClientDumpRequestCallback dump_callback,
91 OnClientExitingCallback exit_callback,
94 const std::string &dump_path);
108 bool MakeMinidumpFilename(std::string &outFilename);
112 static void *WaitForMessages(
void *server);
116 bool WaitForOneMessage();
118 FilterCallback filter_;
119 void *filter_context_;
121 OnClientDumpRequestCallback dump_callback_;
124 OnClientExitingCallback exit_callback_;
127 bool generate_dumps_;
129 std::string dump_dir_;
138 std::string mach_port_name_;
141 pthread_t server_thread_;
150 #endif // GOOGLE_BREAKPAD_CLIENT_MAC_CRASH_GENERATION_CRASH_GENERATION_SERVER_H_
int32_t exception_subcode