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

Unified Diff: chrome/chrome_watcher/chrome_watcher_main_api.h

Issue 901673002: Instantiate a Kasko reporter inside the Chrome watcher process, when SyzyASAN instrumented. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ship_kasko
Patch Set: Fix a runtime error. Created 5 years, 10 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
Index: chrome/chrome_watcher/chrome_watcher_main_api.h
diff --git a/chrome/chrome_watcher/chrome_watcher_main_api.h b/chrome/chrome_watcher/chrome_watcher_main_api.h
index 22dbf9b18ce21a825607d4118d94c1e28d9fe3fd..41fec9b67ecacdfca95170c63e3fe81ed5942267 100644
--- a/chrome/chrome_watcher/chrome_watcher_main_api.h
+++ b/chrome/chrome_watcher/chrome_watcher_main_api.h
@@ -7,6 +7,7 @@
#include <Windows.h>
#include "base/files/file_path.h"
+#include "base/process/process_handle.h"
#include "base/strings/string16.h"
// The name of the watcher DLL.
@@ -16,11 +17,20 @@ extern const char kChromeWatcherDLLEntrypoint[];
// The type of the watcher DLL's main entry point.
// Watches |parent_process| and records its exit code under |registry_path| in
-// HKCU. |on_initialized_event| will be signaled once the process is fully
-// initialized. Takes ownership of |parent_process| and |on_initialized_event|.
+// HKCU. If SyzyASAN is enabled, a Kasko reporter process is also instantiated,
+// using |browser_data_directory| to store crash reports. |on_initialized_event|
+// will be signaled once the process is fully initialized. Takes ownership of
+// |parent_process| and |on_initialized_event|.
typedef int (*ChromeWatcherMainFunction)(
const base::char16* registry_path,
HANDLE parent_process,
- HANDLE on_initialized_event);
+ HANDLE on_initialized_event,
+ const base::char16* browser_data_directory);
+
+// Returns an RPC endpoint name for the identified client process. This method
+// may be invoked in both the client and the watcher process with the PID of the
+// client process to establish communication between the two using a common
+// endpoint name.
+base::string16 GetKaskoEndpoint(base::ProcessId client_process_id);
#endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_

Powered by Google App Engine
This is Rietveld 408576698