Index: chromecast/crash/breakpad_util.h |
diff --git a/chromecast/crash/breakpad_util.h b/chromecast/crash/breakpad_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a28ee0881b8c91204c9da779a3be4db6411cd959 |
--- /dev/null |
+++ b/chromecast/crash/breakpad_util.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROMECAST_INTERNAL_BREAKPAD_BREAKPAD_UTIL_H_ |
+#define CHROMECAST_INTERNAL_BREAKPAD_BREAKPAD_UTIL_H_ |
+ |
+#include <stdint.h> |
+ |
+#include <string> |
+ |
+namespace chromecast { |
+ |
+class BreakpadUtil { |
+ public: |
+ // Helper function to request upload an existing minidump file. |
+ static void RequestUploadCrashDump(const std::string& existing_minidump_path, |
+ const std::string& crashed_process_name, |
+ uint64_t crashed_process_start_time_ms); |
+ |
+ // Util function to get current time in ms. This is used to record |
+ // crashed_process_start_time_ms in client side. |
+ static uint64_t GetCurrentTimeMs(); |
+}; |
+ |
+} // namespace chromecast |
+ |
+#endif // CHROMECAST_INTERNAL_BREAKPAD_BREAKPAD_UTIL_H_ |