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

Side by Side Diff: crash_collector.h

Issue 6615021: Modify crash-reporter to collect crash information for unofficial builds. (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git@master
Patch Set: Created 9 years, 9 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Add non-standard meta data to the crash metadata file. Call 124 // Add non-standard meta data to the crash metadata file. Call
125 // before calling WriteCrashMetaData. Key must not contain "=" or 125 // before calling WriteCrashMetaData. Key must not contain "=" or
126 // "\n" characters. Value must not contain "\n" characters. 126 // "\n" characters. Value must not contain "\n" characters.
127 void AddCrashMetaData(const std::string &key, const std::string &value); 127 void AddCrashMetaData(const std::string &key, const std::string &value);
128 128
129 // Write a file of metadata about crash. 129 // Write a file of metadata about crash.
130 void WriteCrashMetaData(const FilePath &meta_path, 130 void WriteCrashMetaData(const FilePath &meta_path,
131 const std::string &exec_name, 131 const std::string &exec_name,
132 const std::string &payload_path); 132 const std::string &payload_path);
133 133
134 // Returns true if the a crash test is currently running.
135 bool IsCrashTestInProgress();
136
134 CountCrashFunction count_crash_function_; 137 CountCrashFunction count_crash_function_;
135 IsFeedbackAllowedFunction is_feedback_allowed_function_; 138 IsFeedbackAllowedFunction is_feedback_allowed_function_;
136 std::string extra_metadata_; 139 std::string extra_metadata_;
137 const char *forced_crash_directory_; 140 const char *forced_crash_directory_;
138 const char *lsb_release_; 141 const char *lsb_release_;
139 }; 142 };
140 143
141 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ 144 #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