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

Side by Side Diff: components/breakpad/breakpad_client.h

Issue 19697015: Move dependency on env_vars.h to breakpad client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 5 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
OLDNEW
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_BREAKPAD_BREAKPAD_CLIENT_H_ 5 #ifndef COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_
6 #define COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ 6 #define COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 24 matching lines...) Expand all
35 // Returns true if an alternative location to store the minidump files was 35 // Returns true if an alternative location to store the minidump files was
36 // specified. Returns true if |crash_dir| was set. 36 // specified. Returns true if |crash_dir| was set.
37 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir); 37 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir);
38 38
39 // Returns a textual description of the product type and version to include 39 // Returns a textual description of the product type and version to include
40 // in the crash report. 40 // in the crash report.
41 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, 41 virtual void GetProductNameAndVersion(const base::FilePath& exe_path,
42 base::string16* product_name, 42 base::string16* product_name,
43 base::string16* version, 43 base::string16* version,
44 base::string16* special_build); 44 base::string16* special_build);
45
46 // Returns true if a restart dialog should be displayed. In that case,
47 // |message| and |title| are set to a message to display in a dialog box with
48 // the given title before restarting, and |is_rtl_locale| indicates whether
49 // to display the text as RTL.
50 virtual bool ShouldShowRestartDialog(base::string16* title,
51 base::string16* message,
52 bool* is_rtl_locale);
53
54 // Returns true if it is ok to restart the application. Invoked right before
55 // restarting after a crash.
56 virtual bool AboutToRestart();
45 #endif 57 #endif
46 58
47 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) 59 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
48 // Returns a textual description of the product type and version to include 60 // Returns a textual description of the product type and version to include
49 // in the crash report. 61 // in the crash report.
50 virtual void GetProductNameAndVersion(std::string* product_name, 62 virtual void GetProductNameAndVersion(std::string* product_name,
51 std::string* version); 63 std::string* version);
52 #endif 64 #endif
53 65
54 // The location where minidump files should be written. Returns true if 66 // The location where minidump files should be written. Returns true if
55 // |crash_dir| was set. 67 // |crash_dir| was set.
56 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); 68 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir);
57 69
58 #if defined(OS_POSIX) 70 #if defined(OS_POSIX)
59 // Sets a function that'll be invoked to dump the current process when 71 // Sets a function that'll be invoked to dump the current process when
60 // without crashing. 72 // without crashing.
61 virtual void SetDumpWithoutCrashingFunction(void (*function)()); 73 virtual void SetDumpWithoutCrashingFunction(void (*function)());
62 #endif 74 #endif
63 75
64 // Register all of the potential crash keys that can be sent to the crash 76 // Register all of the potential crash keys that can be sent to the crash
65 // reporting server. Returns the size of the union of all keys. 77 // reporting server. Returns the size of the union of all keys.
66 virtual size_t RegisterCrashKeys(); 78 virtual size_t RegisterCrashKeys();
79
80 // Returns true if running in unattended mode (for automated testing).
81 virtual bool IsRunningUnattended();
67 }; 82 };
68 83
69 } // namespace breakpad 84 } // namespace breakpad
70 85
71 #endif // COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ 86 #endif // COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698