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

Unified Diff: chrome/chrome_watcher/kasko_util.h

Issue 1844023002: Capture a report on failed browser rendez-vous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GYP fixup Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | chrome/chrome_watcher/kasko_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..30d7bc802379a01d8ac2036637f61ae2e5372ef9
--- /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"
+
+// Initialize a Kasko reporter.
+bool InitializeKaskoReporter(const base::string16& endpoint,
+ const base::char16* browser_data_directory);
+
+// Shut down a Kasko reporter.
+void ShutdownKaskoReporter();
+
+// Ensure that a process is a valid target for report capture. This is to
+// defend against against races that exist in getting a Process from a window
+// name (potential HWND and process id recycling).
+bool EnsureTargetProcessValidForCapture(const base::Process& process);
+
+// Dumps a process. A crash key will be added to the report, using the provided
+// key as name and "1" as its value.
+void DumpHungProcess(DWORD main_thread_id, const base::string16 &channel,
+ const base::char16* key, const base::Process& process);
+
+#endif // CHROME_CHROME_WATCHER_KASKO_UTIL_H_
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | chrome/chrome_watcher/kasko_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698