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

Side by Side Diff: chrome_frame/crash_server_init.h

Issue 7219007: Fix up crash reporting in unit tests and the Chrome Frame helper processes: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_launcher_main.cc ('k') | chrome_frame/crash_server_init.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_FRAME_CRASH_SERVER_INIT_H_ 5 #ifndef CHROME_FRAME_CRASH_SERVER_INIT_H_
6 #define CHROME_FRAME_CRASH_SERVER_INIT_H_ 6 #define CHROME_FRAME_CRASH_SERVER_INIT_H_
7 7
8 #include "breakpad/src/client/windows/handler/exception_handler.h" 8 #include "breakpad/src/client/windows/handler/exception_handler.h"
9 9
10 // Possible names for Pipes: 10 // Possible names for Pipes:
11 // Headless (testing) mode: "NamedPipe\ChromeCrashServices" 11 // Headless (testing) mode: "NamedPipe\ChromeCrashServices"
12 // System-wide install: "NamedPipe\GoogleCrashServices\S-1-5-18" 12 // System-wide install: "NamedPipe\GoogleCrashServices\S-1-5-18"
13 // Per-user install: "NamedPipe\GoogleCrashServices\<user SID>" 13 // Per-user install: "NamedPipe\GoogleCrashServices\<user SID>"
14 extern const wchar_t kChromePipeName[]; 14 extern const wchar_t kChromePipeName[];
15 extern const wchar_t kGoogleUpdatePipeName[]; 15 extern const wchar_t kGoogleUpdatePipeName[];
16 extern const wchar_t kSystemPrincipalSid[]; 16 extern const wchar_t kSystemPrincipalSid[];
17 17
18 // Assume this implies headless mode and use kChromePipeName if it shows 18 extern const MINIDUMP_TYPE kLargerDumpType;
19 // up in the command line.
20 extern const wchar_t kFullMemoryCrashReport[];
21 19
22 extern const MINIDUMP_TYPE kLargerDumpType; 20 enum CrashReportingMode {
21 HEADLESS, // Used for testing, uses crash_service.exe for dumps.
22 NORMAL // Regular mode, uses GoogleCrashService.exe for dumps.
23 };
23 24
24 // Returns a pointer to a static instance of a CustomClientInfo structure 25 // Returns a pointer to a static instance of a CustomClientInfo structure
25 // containing Chrome Frame specific data. 26 // containing Chrome Frame specific data.
26 google_breakpad::CustomClientInfo* GetCustomInfo(); 27 google_breakpad::CustomClientInfo* GetCustomInfo();
27 28
28 // Initializes breakpad crash reporting and returns a pointer to a newly 29 // Initializes breakpad crash reporting and returns a pointer to a newly
29 // constructed ExceptionHandler object. It is the responsibility of the caller 30 // constructed ExceptionHandler object. It is the responsibility of the caller
30 // to delete this object which will shut down the crash reporting machinery. 31 // to delete this object which will shut down the crash reporting machinery.
31 google_breakpad::ExceptionHandler* InitializeCrashReporting( 32 google_breakpad::ExceptionHandler* InitializeCrashReporting(
32 const wchar_t* cmd_line); 33 CrashReportingMode mode);
33 34
34 #endif // CHROME_FRAME_CRASH_SERVER_INIT_H_ 35 #endif // CHROME_FRAME_CRASH_SERVER_INIT_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_launcher_main.cc ('k') | chrome_frame/crash_server_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698