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

Side by Side Diff: crash_collector.h

Issue 6559003: Modify crash-reporter to collect crash information for unofficial builds. (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git@master
Patch Set: Address code review feedbacks Created 9 years, 10 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
« no previous file with comments | « no previous file | crash_collector.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 (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 _CRASH_REPORTER_CRASH_COLLECTOR_H_ 5 #ifndef _CRASH_REPORTER_CRASH_COLLECTOR_H_
6 #define _CRASH_REPORTER_CRASH_COLLECTOR_H_ 6 #define _CRASH_REPORTER_CRASH_COLLECTOR_H_
7 7
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Add non-standard meta data to the crash metadata file. Call 131 // Add non-standard meta data to the crash metadata file. Call
132 // before calling WriteCrashMetaData. Key must not contain "=" or 132 // before calling WriteCrashMetaData. Key must not contain "=" or
133 // "\n" characters. Value must not contain "\n" characters. 133 // "\n" characters. Value must not contain "\n" characters.
134 void AddCrashMetaData(const std::string &key, const std::string &value); 134 void AddCrashMetaData(const std::string &key, const std::string &value);
135 135
136 // Write a file of metadata about crash. 136 // Write a file of metadata about crash.
137 void WriteCrashMetaData(const FilePath &meta_path, 137 void WriteCrashMetaData(const FilePath &meta_path,
138 const std::string &exec_name, 138 const std::string &exec_name,
139 const std::string &payload_path); 139 const std::string &payload_path);
140 140
141 // Returns true if the a crash test is currently running.
142 bool IsCrashTestInProgress();
143
141 CountCrashFunction count_crash_function_; 144 CountCrashFunction count_crash_function_;
142 IsFeedbackAllowedFunction is_feedback_allowed_function_; 145 IsFeedbackAllowedFunction is_feedback_allowed_function_;
143 SystemLogging *logger_; 146 SystemLogging *logger_;
144 std::string extra_metadata_; 147 std::string extra_metadata_;
145 const char *forced_crash_directory_; 148 const char *forced_crash_directory_;
146 const char *lsb_release_; 149 const char *lsb_release_;
147 }; 150 };
148 151
149 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ 152 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | crash_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698