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

Unified Diff: components/crash/content/app/crashpad.h

Issue 1416133003: Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add some stub gn files Created 5 years, 1 month 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 | « components/crash/content/app/BUILD.gn ('k') | components/crash/content/app/crashpad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/content/app/crashpad.h
diff --git a/components/crash/content/app/crashpad_mac.h b/components/crash/content/app/crashpad.h
similarity index 69%
rename from components/crash/content/app/crashpad_mac.h
rename to components/crash/content/app/crashpad.h
index 3e84ca67f226757d7ec598c8498ea012cfba08c2..6121efb14657dca733e6657557e240db03690073 100644
--- a/components/crash/content/app/crashpad_mac.h
+++ b/components/crash/content/app/crashpad.h
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_MAC_H_
-#define COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_MAC_H_
+#ifndef COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_
+#define COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_
#include <time.h>
#include <string>
#include <vector>
+#include "base/files/file_path.h"
+
namespace crash_reporter {
// Initializes Crashpad in a way that is appropriate for initial_client and
@@ -28,14 +30,14 @@ namespace crash_reporter {
// release mode only). Note that when process_type is empty, initial_client must
// be true.
//
-// process_type may be non-empty with initial_client set to true. This indicates
-// that an exception handler has been inherited but should be discarded in favor
-// of a new Crashpad handler. This configuration should be used infrequently. It
-// is provided to allow an install-from-.dmg relauncher process to disassociate
-// from an old Crashpad handler so that after performing an installation from a
-// disk image, the relauncher process may unmount the disk image that contains
-// its inherited crashpad_handler. This is only supported when initial_client is
-// true and process_type is "relauncher".
+// On Mac, process_type may be non-empty with initial_client set to true. This
+// indicates that an exception handler has been inherited but should be
+// discarded in favor of a new Crashpad handler. This configuration should be
+// used infrequently. It is provided to allow an install-from-.dmg relauncher
+// process to disassociate from an old Crashpad handler so that after performing
+// an installation from a disk image, the relauncher process may unmount the
+// disk image that contains its inherited crashpad_handler. This is only
+// supported when initial_client is true and process_type is "relauncher".
void InitializeCrashpad(bool initial_client, const std::string& process_type);
// Enables or disables crash report upload. This is a property of the Crashpad
@@ -68,6 +70,15 @@ struct UploadedReport {
// disabled.
void GetUploadedReports(std::vector<UploadedReport>* uploaded_reports);
+namespace internal {
+
+// The platform-specific portion of InitializeCrashpad().
+// Returns the database path, if initializing in the browser process.
+base::FilePath PlatformCrashpadInitialization(bool initial_client,
+ bool browser_process);
+
+} // namespace internal
+
} // namespace crash_reporter
-#endif // COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_MAC_H_
+#endif // COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_
« no previous file with comments | « components/crash/content/app/BUILD.gn ('k') | components/crash/content/app/crashpad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698