summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad_win.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-02 03:22:35 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-02 03:22:35 +0000
commitaab98a5a0e9dc69bfea24ad796807e67abe53cea (patch)
tree14987b854a05368ffd9cb6b03a4adb57577db366 /chrome/app/breakpad_win.h
parent647eb03cbf4fa882d17abc4ee24abc3478f4dc52 (diff)
downloadchromium_src-aab98a5a0e9dc69bfea24ad796807e67abe53cea.zip
chromium_src-aab98a5a0e9dc69bfea24ad796807e67abe53cea.tar.gz
chromium_src-aab98a5a0e9dc69bfea24ad796807e67abe53cea.tar.bz2
Ok, here is a different approach at this change.
Instead of storing pointers into a vector, store offsets. That way, if the vector resizes, we should still be OK. Also, add a DCHECK that we only enter this method once, which is my current assumption. Review URL: http://codereview.chromium.org/457028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_win.h')
-rw-r--r--chrome/app/breakpad_win.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/app/breakpad_win.h b/chrome/app/breakpad_win.h
index c7cd9ec..3a13149 100644
--- a/chrome/app/breakpad_win.h
+++ b/chrome/app/breakpad_win.h
@@ -8,6 +8,12 @@
#include <windows.h>
#include <string>
+// The maximum number of 64-char URL chunks we will report.
+static const int kMaxUrlChunks = 8;
+
+// The maximum number of active extensions we will report.
+static const int kMaxReportedActiveExtensions = 10;
+
// Calls InitCrashReporterThread in it's own thread for the browser process
// or directly for the plugin and renderer process.
void InitCrashReporterWithDllPath(const std::wstring& dll_path);