• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011, Google Inc.
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 //     * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 //     * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the
13 // distribution.
14 //     * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 
30 // Keys for configuration file
31 #define kReporterMinidumpDirectoryKey "MinidumpDir"
32 #define kReporterMinidumpIDKey        "MinidumpID"
33 
34 // Filename for recording uploaded IDs
35 #define kReporterLogFilename          "uploads.log"
36 
37 // The default subdirectory of the Library to put crash dumps in
38 // The subdirectory is
39 //  ~/Library/<kDefaultLibrarySubdirectory>/<GoogleBreakpadProduct>
40 #define kDefaultLibrarySubdirectory   "Breakpad"
41 
42 // Specify some special keys to be used in the configuration file that is
43 // generated by Breakpad and consumed by the crash_sender.
44 #define BREAKPAD_PRODUCT               "BreakpadProduct"
45 #define BREAKPAD_PRODUCT_DISPLAY       "BreakpadProductDisplay"
46 #define BREAKPAD_VERSION               "BreakpadVersion"
47 #define BREAKPAD_VENDOR                "BreakpadVendor"
48 #define BREAKPAD_URL                   "BreakpadURL"
49 #define BREAKPAD_REPORT_INTERVAL       "BreakpadReportInterval"
50 #define BREAKPAD_SKIP_CONFIRM          "BreakpadSkipConfirm"
51 #define BREAKPAD_CONFIRM_TIMEOUT       "BreakpadConfirmTimeout"
52 #define BREAKPAD_SEND_AND_EXIT         "BreakpadSendAndExit"
53 #define BREAKPAD_DUMP_DIRECTORY        "BreakpadMinidumpLocation"
54 #define BREAKPAD_INSPECTOR_LOCATION    "BreakpadInspectorLocation"
55 #define BREAKPAD_REPORTER_EXE_LOCATION \
56   "BreakpadReporterExeLocation"
57 #define BREAKPAD_LOGFILES              "BreakpadLogFiles"
58 #define BREAKPAD_LOGFILE_UPLOAD_SIZE   "BreakpadLogFileTailSize"
59 #define BREAKPAD_REQUEST_COMMENTS      "BreakpadRequestComments"
60 #define BREAKPAD_COMMENTS              "BreakpadComments"
61 #define BREAKPAD_REQUEST_EMAIL         "BreakpadRequestEmail"
62 #define BREAKPAD_EMAIL                 "BreakpadEmail"
63 #define BREAKPAD_SERVER_TYPE           "BreakpadServerType"
64 #define BREAKPAD_SERVER_PARAMETER_DICT "BreakpadServerParameters"
65 #define BREAKPAD_IN_PROCESS            "BreakpadInProcess"
66 
67 // The keys below are NOT user supplied, and are used internally.
68 #define BREAKPAD_PROCESS_START_TIME       "BreakpadProcStartTime"
69 #define BREAKPAD_PROCESS_UP_TIME          "BreakpadProcessUpTime"
70 #define BREAKPAD_PROCESS_CRASH_TIME       "BreakpadProcessCrashTime"
71 #define BREAKPAD_LOGFILE_KEY_PREFIX       "BreakpadAppLogFile"
72 #define BREAKPAD_SERVER_PARAMETER_PREFIX  "BreakpadServerParameterPrefix_"
73 #define BREAKPAD_ON_DEMAND                "BreakpadOnDemand"
74