diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:57:42 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:57:42 +0000 |
commit | e4fe427bde7602c8b38996889a0eface92e1a770 (patch) | |
tree | 11a741f8da1ba12fff192fd3be9c182de5523150 /chrome_frame/crash_server_init.h | |
parent | e2abdeb2f6ad46c39153ccfbf233f552f0f9691a (diff) | |
download | chromium_src-e4fe427bde7602c8b38996889a0eface92e1a770.zip chromium_src-e4fe427bde7602c8b38996889a0eface92e1a770.tar.gz chromium_src-e4fe427bde7602c8b38996889a0eface92e1a770.tar.bz2 |
Add crash reporting to the long running Chrome Frame helper process.
BUG=53127
TEST=chrome_frame_helper.exe connects to the crash process.
Review URL: http://codereview.chromium.org/3287008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/crash_server_init.h')
-rw-r--r-- | chrome_frame/crash_server_init.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome_frame/crash_server_init.h b/chrome_frame/crash_server_init.h new file mode 100644 index 0000000..bf7ff95 --- /dev/null +++ b/chrome_frame/crash_server_init.h @@ -0,0 +1,34 @@ +// Copyright (c) 2010 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_FRAME_CRASH_SERVER_INIT_H_ +#define CHROME_FRAME_CRASH_SERVER_INIT_H_ + +#include "breakpad/src/client/windows/handler/exception_handler.h" + +// Possible names for Pipes: +// Headless (testing) mode: "NamedPipe\ChromeCrashServices" +// System-wide install: "NamedPipe\GoogleCrashServices\S-1-5-18" +// Per-user install: "NamedPipe\GoogleCrashServices\<user SID>" +extern const wchar_t kChromePipeName[]; +extern const wchar_t kGoogleUpdatePipeName[]; +extern const wchar_t kSystemPrincipalSid[]; + +// Assume this implies headless mode and use kChromePipeName if it shows +// up in the command line. +extern const wchar_t kFullMemoryCrashReport[]; + +extern const MINIDUMP_TYPE kLargerDumpType; + +// Returns a pointer to a static instance of a CustomClientInfo structure +// containing Chrome Frame specific data. +google_breakpad::CustomClientInfo* GetCustomInfo(); + +// Initializes breakpad crash reporting and returns a pointer to a newly +// constructed ExceptionHandler object. It is the responsibility of the caller +// to delete this object which will shut down the crash reporting machinery. +google_breakpad::ExceptionHandler* InitializeCrashReporting( + const wchar_t* cmd_line); + +#endif // CHROME_FRAME_CRASH_SERVER_INIT_H_ |