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

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

Issue 99523009: Move DumpProcessWithoutCrash to base, so we can use it from net and content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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
« no previous file with comments | « chrome/common/logging_chrome.cc ('k') | components/breakpad/app/breakpad_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_APP_BREAKPAD_CLIENT_H_ 5 #ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_
6 #define COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ 6 #define COMPONENTS_BREAKPAD_APP_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void GetProductNameAndVersion(std::string* product_name, 99 virtual void GetProductNameAndVersion(std::string* product_name,
100 std::string* version); 100 std::string* version);
101 101
102 virtual base::FilePath GetReporterLogFilename(); 102 virtual base::FilePath GetReporterLogFilename();
103 #endif 103 #endif
104 104
105 // The location where minidump files should be written. Returns true if 105 // The location where minidump files should be written. Returns true if
106 // |crash_dir| was set. 106 // |crash_dir| was set.
107 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); 107 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir);
108 108
109 #if defined(OS_POSIX)
110 // Sets a function that'll be invoked to dump the current process when
111 // without crashing.
112 virtual void SetDumpWithoutCrashingFunction(void (*function)());
113 #endif
114
115 // Register all of the potential crash keys that can be sent to the crash 109 // Register all of the potential crash keys that can be sent to the crash
116 // reporting server. Returns the size of the union of all keys. 110 // reporting server. Returns the size of the union of all keys.
117 virtual size_t RegisterCrashKeys(); 111 virtual size_t RegisterCrashKeys();
118 112
119 // Returns true if running in unattended mode (for automated testing). 113 // Returns true if running in unattended mode (for automated testing).
120 virtual bool IsRunningUnattended(); 114 virtual bool IsRunningUnattended();
121 115
122 // Returns true if the user has given consent to collect stats. 116 // Returns true if the user has given consent to collect stats.
123 virtual bool GetCollectStatsConsent(); 117 virtual bool GetCollectStatsConsent();
124 118
(...skipping 13 matching lines...) Expand all
138 virtual void InstallAdditionalFilters(BreakpadRef breakpad); 132 virtual void InstallAdditionalFilters(BreakpadRef breakpad);
139 #endif 133 #endif
140 134
141 // Returns true if breakpad should run in the given process type. 135 // Returns true if breakpad should run in the given process type.
142 virtual bool EnableBreakpadForProcess(const std::string& process_type); 136 virtual bool EnableBreakpadForProcess(const std::string& process_type);
143 }; 137 };
144 138
145 } // namespace breakpad 139 } // namespace breakpad
146 140
147 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ 141 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/logging_chrome.cc ('k') | components/breakpad/app/breakpad_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698