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

Side by Side Diff: crash_collector.h

Issue 3820004: crash-reporter: send payload sizes to help diagnose corruption (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git
Patch Set: Created 10 years, 2 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool CheckHasCapacity(const FilePath &crash_directory); 82 bool CheckHasCapacity(const FilePath &crash_directory);
83 83
84 // Read the given file of form [<key><separator><value>\n...] and return 84 // Read the given file of form [<key><separator><value>\n...] and return
85 // a map of its contents. 85 // a map of its contents.
86 bool ReadKeyValueFile(const FilePath &file, 86 bool ReadKeyValueFile(const FilePath &file,
87 char separator, 87 char separator,
88 std::map<std::string, std::string> *dictionary); 88 std::map<std::string, std::string> *dictionary);
89 89
90 // Write a file of metadata about crash. 90 // Write a file of metadata about crash.
91 void WriteCrashMetaData(const FilePath &meta_path, 91 void WriteCrashMetaData(const FilePath &meta_path,
92 const std::string &exec_name); 92 const std::string &exec_name,
93 const std::string &payload_path);
93 94
94 CountCrashFunction count_crash_function_; 95 CountCrashFunction count_crash_function_;
95 IsFeedbackAllowedFunction is_feedback_allowed_function_; 96 IsFeedbackAllowedFunction is_feedback_allowed_function_;
96 SystemLogging *logger_; 97 SystemLogging *logger_;
97 const char *forced_crash_directory_; 98 const char *forced_crash_directory_;
98 }; 99 };
99 100
100 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ 101 #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