summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-14 03:26:03 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-14 03:26:03 +0000
commit1152b7ea95609ce835bdb9ab4454b4589b60ea87 (patch)
treefd9a09dee7e9457d793564cf605388d1359a24a1 /chrome/browser/browser_main.h
parent60f1e8fe0973d60e3e786237a283395749550a40 (diff)
downloadchromium_src-1152b7ea95609ce835bdb9ab4454b4589b60ea87.zip
chromium_src-1152b7ea95609ce835bdb9ab4454b4589b60ea87.tar.gz
chromium_src-1152b7ea95609ce835bdb9ab4454b4589b60ea87.tar.bz2
Send Breakpad and debugger status to the metrics service on the Mac.
BUG=21731 TEST=Metrics data should have the correct values for breakpadregistrationok, breakpadregistrationfail, debuggerpresent, and debuggernotpresent in log.profile.stability. Review URL: http://codereview.chromium.org/203050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.h')
-rw-r--r--chrome/browser/browser_main.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.h b/chrome/browser/browser_main.h
new file mode 100644
index 0000000..2044670
--- /dev/null
+++ b/chrome/browser/browser_main.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2009 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_BROWSER_BROWSER_MAIN_H_
+#define CHROME_BROWSER_BROWSER_MAIN_H_
+
+#include "build/build_config.h"
+
+struct MainFunctionParams;
+class MetricsService;
+
+namespace Platform {
+
+// Perform platform-specific work that needs to be done before the main
+// message loop is created, initialized, and entered.
+void WillInitializeMainMessageLoop(const MainFunctionParams& parameters);
+
+// Perform platform-specific work that needs to be done after the main event
+// loop has ended.
+void WillTerminate();
+
+// Records the conditions that can prevent Breakpad from generating and
+// sending crash reports. The presence of a Breakpad handler (after
+// attempting to initialize crash reporting) and the presence of a debugger
+// are registered with the UMA metrics service.
+void RecordBreakpadStatusUMA(MetricsService* metrics);
+
+} // namespace Platform
+
+#endif // CHROME_BROWSER_BROWSER_MAIN_H_