Chromium Code Reviews| Index: chrome/chrome_watcher/kasko_util.h |
| diff --git a/chrome/chrome_watcher/kasko_util.h b/chrome/chrome_watcher/kasko_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..692978d6d959f7bb408e3f0ea433346c0833c20d |
| --- /dev/null |
| +++ b/chrome/chrome_watcher/kasko_util.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright 2016 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 CHROME_CHROME_WATCHER_KASKO_UTIL_H_ |
| +#define CHROME_CHROME_WATCHER_KASKO_UTIL_H_ |
| + |
| +#include <windows.h> |
| + |
| +#include "base/process/process.h" |
| +#include "base/strings/string16.h" |
| + |
| +#include "third_party/kasko/kasko_features.h" |
| + |
| +#if BUILDFLAG(ENABLE_KASKO) |
| + |
| +// Initialize a Kasko reporter. |
| +bool InitializeKaskoReporter(const base::string16& endpoint, |
| + const base::char16* browser_data_directory); |
| + |
| +// Shut down a Kasko reporter. |
| +void ShutdownKaskoReporter(); |
| + |
| +// Dumps a process, setting crash keys that indicate a hang. |
| +void DumpHungProcess(DWORD main_thread_id, const base::string16 &channel, |
| + const base::char16* key, const base::Process& process); |
|
Sigurður Ásgeirsson
2016/04/05 13:52:29
the "key" parameter needs a little bit of 'splaini
manzagop (departed)
2016/04/06 19:36:03
Done.
|
| + |
| +#endif // BUILDFLAG(ENABLE_KASKO) |
| + |
| +#endif // CHROME_CHROME_WATCHER_KASKO_UTIL_H_ |