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

Unified Diff: chrome/app/breakpad_win.h

Issue 9432033: Add experiments info to crash dumps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Last Few Nits Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/breakpad_unittest_win.cc ('k') | chrome/app/breakpad_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_win.h
===================================================================
--- chrome/app/breakpad_win.h (revision 130670)
+++ chrome/app/breakpad_win.h (working copy)
@@ -8,7 +8,27 @@
#include <windows.h>
#include <string>
+#include <vector>
+namespace google_breakpad {
+
+struct CustomInfoEntry;
+}
+
+namespace breakpad_win {
+
+// A pointer to the custom entries that we send in the event of a crash. We need
+// this pointer, along with the offsets into it below (and some private ones),
+// so that we can keep the data updated as the state of the browser changes.
+extern std::vector<google_breakpad::CustomInfoEntry>* g_custom_entries;
+
+// These two are here because they are needed by breakpad_field_trial_win as
+// well as breakpad_unittest_win.
+extern size_t g_num_of_experiments_offset;
+extern size_t g_experiment_chunks_offset;
+
+} // namespace breakpad_win
+
// The maximum number of 64-char URL chunks we will report.
static const int kMaxUrlChunks = 8;
@@ -22,4 +42,11 @@
// a dialog asking for permission to continue execution or to exit now.
bool ShowRestartDialogIfCrashed(bool* exit_now);
+namespace testing {
+
+// Testing entry point for calling a function from the unnamed namespace.
+void InitCustomInfoEntries();
+
+}
+
#endif // CHROME_APP_BREAKPAD_WIN_H_
« no previous file with comments | « chrome/app/breakpad_unittest_win.cc ('k') | chrome/app/breakpad_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698