Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
|
grt (UTC plus 2)
2011/06/22 14:15:01
2011
robertshield
2011/06/23 02:22:51
Done.
| |
| 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 // Assume this implies headless mode and use kChromePipeName if it shows |
| 19 // up in the command line. | 19 // up in the command line. |
| 20 extern const wchar_t kFullMemoryCrashReport[]; | 20 extern const wchar_t kFullMemoryCrashReport[]; |
|
grt (UTC plus 2)
2011/06/22 14:15:01
This doesn't seem to be used anymore. Remove it?
robertshield
2011/06/23 02:22:51
Done.
| |
| 21 | 21 |
| 22 extern const MINIDUMP_TYPE kLargerDumpType; | 22 extern const MINIDUMP_TYPE kLargerDumpType; |
| 23 | 23 |
| 24 enum CrashReportingFlags { | |
|
grt (UTC plus 2)
2011/06/22 14:15:01
I suggest CrashReportingMode. Rationale: "flags"
grt (UTC plus 2)
2011/06/22 14:15:01
Maybe add a comment here to explain what these mea
robertshield
2011/06/23 02:22:51
Done.
robertshield
2011/06/23 02:22:51
Done.
| |
| 25 HEADLESS, | |
| 26 NORMAL | |
| 27 }; | |
| 28 | |
| 24 // Returns a pointer to a static instance of a CustomClientInfo structure | 29 // Returns a pointer to a static instance of a CustomClientInfo structure |
| 25 // containing Chrome Frame specific data. | 30 // containing Chrome Frame specific data. |
| 26 google_breakpad::CustomClientInfo* GetCustomInfo(); | 31 google_breakpad::CustomClientInfo* GetCustomInfo(); |
| 27 | 32 |
| 28 // Initializes breakpad crash reporting and returns a pointer to a newly | 33 // Initializes breakpad crash reporting and returns a pointer to a newly |
| 29 // constructed ExceptionHandler object. It is the responsibility of the caller | 34 // constructed ExceptionHandler object. It is the responsibility of the caller |
| 30 // to delete this object which will shut down the crash reporting machinery. | 35 // to delete this object which will shut down the crash reporting machinery. |
|
grt (UTC plus 2)
2011/06/22 14:15:01
Please document flags/mode.
robertshield
2011/06/23 02:22:51
Documented above.
| |
| 31 google_breakpad::ExceptionHandler* InitializeCrashReporting( | 36 google_breakpad::ExceptionHandler* InitializeCrashReporting( |
| 32 const wchar_t* cmd_line); | 37 CrashReportingFlags flags); |
| 33 | 38 |
| 34 #endif // CHROME_FRAME_CRASH_SERVER_INIT_H_ | 39 #endif // CHROME_FRAME_CRASH_SERVER_INIT_H_ |
| OLD | NEW |