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

Unified Diff: headless/public/headless_browser.h

Issue 2693943004: headless: Add support for minidump generation on Linux (Closed)
Patch Set: Review comments Created 3 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
« no previous file with comments | « headless/lib/headless_macros.h ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index a1ebc5a67c772b7aa0c8898eda5ef8eeef0684d1..99974942f7334d4a5b4776d8e66cb7e69aa0a255 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -157,6 +157,12 @@ struct HeadlessBrowser::Options {
// exposed WebPreferences API, so use with care.
base::Callback<void(WebPreferences*)> override_web_preferences_callback;
+ // Minidump crash reporter settings. Crash reporting is disabled by default.
+ // By default crash dumps are written to the directory containing the
+ // executable.
+ bool enable_crash_reporter;
+ base::FilePath crash_dumps_dir;
+
// Reminder: when adding a new field here, do not forget to add it to
// HeadlessBrowserContextOptions (where appropriate).
private:
@@ -190,6 +196,8 @@ class HeadlessBrowser::Options::Builder {
Builder& SetIncognitoMode(bool incognito_mode);
Builder& SetOverrideWebPreferencesCallback(
base::Callback<void(WebPreferences*)> callback);
+ Builder& SetCrashReporterEnabled(bool enabled);
+ Builder& SetCrashDumpsDir(const base::FilePath& dir);
Options Build();
« no previous file with comments | « headless/lib/headless_macros.h ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698