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

Unified Diff: remoting/base/breakpad.h

Issue 10495003: Make Chromoting Host report crashes to Breakpad (Windows only). The user must enable crash dumps co… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing DEPS and rebased. Created 8 years, 6 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 | « remoting/base/DEPS ('k') | remoting/base/breakpad_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/breakpad.h
diff --git a/remoting/base/breakpad.h b/remoting/base/breakpad.h
new file mode 100644
index 0000000000000000000000000000000000000000..7e1f0a40ea92c7f9efb60608846d1cf20b3eaa2a
--- /dev/null
+++ b/remoting/base/breakpad.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2012 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 REMOTING_BASE_BREAKPAD_H_
+#define REMOTING_BASE_BREAKPAD_H_
+
+namespace remoting {
+
+// Initializes collection and upload of crash reports. The caller has to ensure
+// that the user has agreed to crash dump reporting.
+//
+// Crash reporting has to be initialized as early as possible (e.g. the first
+// thing in main()) to catch crashes occured during the process startup.
+// The crashes occurred while invoking the static objects' constructors will not
+// be caught and reported. This should not be a problem as the static non POD
+// objects are not allowed by the style guide and exceptions to this rule are
+// rare.
+void InitializeCrashReporting();
+
+} // remoting
+
+#endif // REMOTING_BASE_BREAKPAD_H_
« no previous file with comments | « remoting/base/DEPS ('k') | remoting/base/breakpad_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698