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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/breakpad_unittest_win.cc ('k') | chrome/app/breakpad_win.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 CHROME_APP_BREAKPAD_WIN_H_ 5 #ifndef CHROME_APP_BREAKPAD_WIN_H_
6 #define CHROME_APP_BREAKPAD_WIN_H_ 6 #define CHROME_APP_BREAKPAD_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <string> 10 #include <string>
11 #include <vector>
12
13 namespace google_breakpad {
14
15 struct CustomInfoEntry;
16 }
17
18 namespace breakpad_win {
19
20 // A pointer to the custom entries that we send in the event of a crash. We need
21 // this pointer, along with the offsets into it below (and some private ones),
22 // so that we can keep the data updated as the state of the browser changes.
23 extern std::vector<google_breakpad::CustomInfoEntry>* g_custom_entries;
24
25 // These two are here because they are needed by breakpad_field_trial_win as
26 // well as breakpad_unittest_win.
27 extern size_t g_num_of_experiments_offset;
28 extern size_t g_experiment_chunks_offset;
29
30 } // namespace breakpad_win
11 31
12 // The maximum number of 64-char URL chunks we will report. 32 // The maximum number of 64-char URL chunks we will report.
13 static const int kMaxUrlChunks = 8; 33 static const int kMaxUrlChunks = 8;
14 34
15 void InitCrashReporter(); 35 void InitCrashReporter();
16 36
17 // Intercepts a crash but does not process it, just ask if we want to restart 37 // Intercepts a crash but does not process it, just ask if we want to restart
18 // the browser or not. 38 // the browser or not.
19 void InitDefaultCrashCallback(LPTOP_LEVEL_EXCEPTION_FILTER filter); 39 void InitDefaultCrashCallback(LPTOP_LEVEL_EXCEPTION_FILTER filter);
20 40
21 // If chrome has been restarted because it crashed, this function will display 41 // If chrome has been restarted because it crashed, this function will display
22 // a dialog asking for permission to continue execution or to exit now. 42 // a dialog asking for permission to continue execution or to exit now.
23 bool ShowRestartDialogIfCrashed(bool* exit_now); 43 bool ShowRestartDialogIfCrashed(bool* exit_now);
24 44
45 namespace testing {
46
47 // Testing entry point for calling a function from the unnamed namespace.
48 void InitCustomInfoEntries();
49
50 }
51
25 #endif // CHROME_APP_BREAKPAD_WIN_H_ 52 #endif // CHROME_APP_BREAKPAD_WIN_H_
OLDNEW
« 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