OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_CRASH_APP_BREAKPAD_WIN_H_ | 5 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_WIN_H_ |
6 #define COMPONENTS_CRASH_APP_BREAKPAD_WIN_H_ | 6 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 namespace breakpad { | 12 namespace breakpad { |
13 | 13 |
14 void InitCrashReporter(const std::string& process_type_switch); | 14 void InitCrashReporter(const std::string& process_type_switch); |
15 | 15 |
16 // If chrome has been restarted because it crashed, this function will display | 16 // If chrome has been restarted because it crashed, this function will display |
17 // a dialog asking for permission to continue execution or to exit now. | 17 // a dialog asking for permission to continue execution or to exit now. |
18 bool ShowRestartDialogIfCrashed(bool* exit_now); | 18 bool ShowRestartDialogIfCrashed(bool* exit_now); |
19 | 19 |
20 // Tells Breakpad that our process is shutting down and to consume | 20 // Tells Breakpad that our process is shutting down and to consume |
21 // EXCEPTION_INVALID_HANDLE exceptions which occur if bad handle detection is | 21 // EXCEPTION_INVALID_HANDLE exceptions which occur if bad handle detection is |
22 // enabled and the sandbox handle closer has previously closed handles owned by | 22 // enabled and the sandbox handle closer has previously closed handles owned by |
23 // Windows DLLs. | 23 // Windows DLLs. |
24 void ConsumeInvalidHandleExceptions(); | 24 void ConsumeInvalidHandleExceptions(); |
25 | 25 |
26 } // namespace breakpad | 26 } // namespace breakpad |
27 | 27 |
28 #endif // COMPONENTS_CRASH_APP_BREAKPAD_WIN_H_ | 28 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_WIN_H_ |
OLD | NEW |