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