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

Side by Side Diff: chromecast/crash/linux/crash_util.h

Issue 1154383006: Adding crash utilities to chromecast/crash. (Closed) Base URL: https://eureka-internal.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 6 months 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_CRASH_LINUX_CRASH_UTIL_H_
6 #define CHROMECAST_CRASH_LINUX_CRASH_UTIL_H_
7
8 #include <stdint.h>
9
10 #include <string>
11
12 #include "base/callback.h"
13
14 namespace chromecast {
15
16 class CrashUtil {
17 public:
18 // Helper function to request upload an existing minidump file.
19 static void RequestUploadCrashDump(const std::string& existing_minidump_path,
alokp 2015/06/15 17:51:48 should it return success/failure?
slan 2015/06/16 14:57:49 Done.
20 const std::string& crashed_process_name,
21 uint64_t crashed_process_start_time_ms);
22
23 // Util function to get current time in ms. This is used to record
24 // crashed_process_start_time_ms in client side.
25 static uint64_t GetCurrentTimeMs();
26
27 // Call this to set a callback to be used instead of invoking an executable
28 // in a seperate process. See MinidumpWriter::SetDumpStateCbForTest() for more
29 // details on this callback's signature.
30 static void SetDumpStateCbForTest(
31 const base::Callback<int(const std::string&)>& cb);
32 };
33
34 } // namespace chromecast
35
36 #endif // CHROMECAST_CRASH_LINUX_CRASH_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698