| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_BREAKPAD_WIN_H_ | 5 #ifndef CHROME_APP_BREAKPAD_WIN_H_ |
| 6 #define CHROME_APP_BREAKPAD_WIN_H_ | 6 #define CHROME_APP_BREAKPAD_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void InitCrashReporter(); | 35 void InitCrashReporter(); |
| 36 | 36 |
| 37 // Intercepts a crash but does not process it, just ask if we want to restart | 37 // Intercepts a crash but does not process it, just ask if we want to restart |
| 38 // the browser or not. | 38 // the browser or not. |
| 39 void InitDefaultCrashCallback(LPTOP_LEVEL_EXCEPTION_FILTER filter); | 39 void InitDefaultCrashCallback(LPTOP_LEVEL_EXCEPTION_FILTER filter); |
| 40 | 40 |
| 41 // If chrome has been restarted because it crashed, this function will display | 41 // If chrome has been restarted because it crashed, this function will display |
| 42 // a dialog asking for permission to continue execution or to exit now. | 42 // a dialog asking for permission to continue execution or to exit now. |
| 43 bool ShowRestartDialogIfCrashed(bool* exit_now); | 43 bool ShowRestartDialogIfCrashed(bool* exit_now); |
| 44 | 44 |
| 45 // Helper to convert a vector of wstrings to corresponding vector of cstrings. |
| 46 // Note that |cstrings| will reference memory owned by |wstrings|. Consequently |
| 47 // |wstrings| must outlive |cstrings|, and |wstrings| should not be mutated. |
| 48 void StringVectorToCStringVector(const std::vector<std::wstring>& wstrings, |
| 49 std::vector<const wchar_t*>* cstrings); |
| 50 |
| 45 namespace testing { | 51 namespace testing { |
| 46 | 52 |
| 47 // Testing entry point for calling a function from the unnamed namespace. | 53 // Testing entry point for calling a function from the unnamed namespace. |
| 48 void InitCustomInfoEntries(); | 54 void InitCustomInfoEntries(); |
| 49 | 55 |
| 50 } | 56 } |
| 51 | 57 |
| 52 #endif // CHROME_APP_BREAKPAD_WIN_H_ | 58 #endif // CHROME_APP_BREAKPAD_WIN_H_ |
| OLD | NEW |