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

Side by Side Diff: chrome/common/child_process_logging.h

Issue 10890015: [Linux] Add field trial tuples to breakpad crash reports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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_linux.cc ('k') | chrome/common/child_process_logging_mac.mm » ('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_COMMON_CHILD_PROCESS_LOGGING_H_ 5 #ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/mac/crash_logging.h" 13 #include "base/mac/crash_logging.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 16
17 class CommandLine; 17 class CommandLine;
18 18
19 namespace content { 19 namespace content {
20 struct GPUInfo; 20 struct GPUInfo;
21 } 21 }
22 22
23 // The maximum number of active extensions we will report. 23 // The maximum number of active extensions we will report.
24 // Also used in chrome/app, but we define it here to avoid a common->app 24 // Also used in chrome/app, but we define it here to avoid a common->app
25 // dependency. 25 // dependency.
26 static const int kMaxReportedActiveExtensions = 10; 26 static const size_t kMaxReportedActiveExtensions = 10;
27 27
28 // The maximum number of variation chunks we will report. 28 // The maximum number of variation chunks we will report.
29 // Also used in chrome/app, but we define it here to avoid a common->app 29 // Also used in chrome/app, but we define it here to avoid a common->app
30 // dependency. 30 // dependency.
31 static const int kMaxReportedVariationChunks = 15; 31 static const size_t kMaxReportedVariationChunks = 15;
32 32
33 // The maximum size of a variation chunk. This size was picked to be 33 // The maximum size of a variation chunk. This size was picked to be
34 // consistent between platforms and the value was chosen from the Windows 34 // consistent between platforms and the value was chosen from the Windows
35 // limit of google_breakpad::CustomInfoEntry::kValueMaxLength. 35 // limit of google_breakpad::CustomInfoEntry::kValueMaxLength.
36 static const size_t kMaxVariationChunkSize = 64; 36 static const size_t kMaxVariationChunkSize = 64;
37 37
38 // The maximum number of prn-info-* records. 38 // The maximum number of prn-info-* records.
39 static const size_t kMaxReportedPrinterRecords = 4; 39 static const size_t kMaxReportedPrinterRecords = 4;
40 40
41 // The maximum number of command line switches to include in the crash 41 // The maximum number of command line switches to include in the crash
(...skipping 12 matching lines...) Expand all
54 extern char g_channel[]; 54 extern char g_channel[];
55 extern char g_client_id[]; 55 extern char g_client_id[];
56 extern char g_extension_ids[]; 56 extern char g_extension_ids[];
57 extern char g_gpu_vendor_id[]; 57 extern char g_gpu_vendor_id[];
58 extern char g_gpu_device_id[]; 58 extern char g_gpu_device_id[];
59 extern char g_gpu_driver_ver[]; 59 extern char g_gpu_driver_ver[];
60 extern char g_gpu_ps_ver[]; 60 extern char g_gpu_ps_ver[];
61 extern char g_gpu_vs_ver[]; 61 extern char g_gpu_vs_ver[];
62 extern char g_num_extensions[]; 62 extern char g_num_extensions[];
63 extern char g_num_switches[]; 63 extern char g_num_switches[];
64 extern char g_num_variations[];
64 extern char g_num_views[]; 65 extern char g_num_views[];
65 extern char g_printer_info[]; 66 extern char g_printer_info[];
66 extern char g_switches[]; 67 extern char g_switches[];
68 extern char g_variation_chunks[];
67 69
68 // Assume IDs are 32 bytes long. 70 // Assume IDs are 32 bytes long.
69 static const size_t kExtensionLen = 32; 71 static const size_t kExtensionLen = 32;
70 72
71 // Assume command line switches are less than 64 chars. 73 // Assume command line switches are less than 64 chars.
72 static const size_t kSwitchLen = 64; 74 static const size_t kSwitchLen = 64;
73 75
74 // Assume printer info strings are less than 64 chars. 76 // Assume printer info strings are less than 64 chars.
75 static const size_t kPrinterInfoStrLen = 64; 77 static const size_t kPrinterInfoStrLen = 64;
76 #endif 78 #endif
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 162
161 extern const int kMaxNumCrashURLChunks; 163 extern const int kMaxNumCrashURLChunks;
162 extern const int kMaxNumURLChunkValueLength; 164 extern const int kMaxNumURLChunkValueLength;
163 extern const char *kUrlChunkFormatStr; 165 extern const char *kUrlChunkFormatStr;
164 166
165 } // namespace child_process_logging 167 } // namespace child_process_logging
166 168
167 #endif // defined(OS_MACOSX) 169 #endif // defined(OS_MACOSX)
168 170
169 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 171 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
OLDNEW
« no previous file with comments | « chrome/app/breakpad_linux.cc ('k') | chrome/common/child_process_logging_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698