Chromium Code Reviews| Index: base/win/dllmain.h |
| diff --git a/base/win/dllmain.h b/base/win/dllmain.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..adc9f9aba267eda4b1663549b1ae4392c7a62e3c |
| --- /dev/null |
| +++ b/base/win/dllmain.h |
| @@ -0,0 +1,21 @@ |
| +// 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 BASE_WIN_DLLMAIN_H_ |
| +#define BASE_WIN_DLLMAIN_H_ |
|
rvargas (doing something else)
2012/03/21 03:13:45
This file should be added to base.gyp. (or some fo
|
| + |
| +namespace base { |
| +namespace win { |
| + |
| +// Sets whether to crash the process during exit. This is used to intercept |
| +// unexpected terminations of the process (via calls to exit(), abort(), |
| +// _exit(), ExitProcess()), and convert them into crashes. Note that not all |
| +// mechanisms for terminating the process are covered by this. For instance, |
| +// TerminateProcess() is not caught. |
| +void DLLMain_SetCrashOnProcessDetach(bool crash); |
| + |
| +} // namespace win |
| +} // namespace base |
| + |
| +#endif // BASE_WIN_DLLMAIN_H_ |