OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 #include "handler/handler_main.h" | 15 #include "handler/handler_main.h" |
16 | 16 |
17 #include <getopt.h> | 17 #include <getopt.h> |
| 18 #include <stdint.h> |
18 #include <stdlib.h> | 19 #include <stdlib.h> |
19 | 20 |
20 #include <map> | 21 #include <map> |
21 #include <string> | 22 #include <string> |
22 #include <utility> | 23 #include <utility> |
23 | 24 |
24 #include "base/auto_reset.h" | 25 #include "base/auto_reset.h" |
25 #include "base/files/file_path.h" | 26 #include "base/files/file_path.h" |
26 #include "base/files/scoped_file.h" | 27 #include "base/files/scoped_file.h" |
27 #include "base/logging.h" | 28 #include "base/logging.h" |
28 #include "base/memory/scoped_ptr.h" | 29 #include "base/memory/scoped_ptr.h" |
29 #include "base/scoped_generic.h" | 30 #include "base/scoped_generic.h" |
30 #include "base/strings/utf_string_conversions.h" | 31 #include "base/strings/utf_string_conversions.h" |
31 #include "build/build_config.h" | 32 #include "build/build_config.h" |
32 #include "client/crash_report_database.h" | 33 #include "client/crash_report_database.h" |
33 #include "client/crashpad_client.h" | 34 #include "client/crashpad_client.h" |
34 #include "client/prune_crash_reports.h" | 35 #include "client/prune_crash_reports.h" |
35 #include "tools/tool_support.h" | |
36 #include "handler/crash_report_upload_thread.h" | 36 #include "handler/crash_report_upload_thread.h" |
37 #include "handler/prune_crash_reports_thread.h" | 37 #include "handler/prune_crash_reports_thread.h" |
| 38 #include "tools/tool_support.h" |
38 #include "util/file/file_io.h" | 39 #include "util/file/file_io.h" |
39 #include "util/stdlib/map_insert.h" | 40 #include "util/stdlib/map_insert.h" |
40 #include "util/stdlib/string_number_conversion.h" | 41 #include "util/stdlib/string_number_conversion.h" |
41 #include "util/string/split_string.h" | 42 #include "util/string/split_string.h" |
42 #include "util/synchronization/semaphore.h" | 43 #include "util/synchronization/semaphore.h" |
43 | 44 |
44 #if defined(OS_MACOSX) | 45 #if defined(OS_MACOSX) |
45 #include <libgen.h> | 46 #include <libgen.h> |
46 #include <signal.h> | 47 #include <signal.h> |
47 | 48 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 384 |
384 exception_handler_server.Run(&exception_handler); | 385 exception_handler_server.Run(&exception_handler); |
385 | 386 |
386 upload_thread.Stop(); | 387 upload_thread.Stop(); |
387 prune_thread.Stop(); | 388 prune_thread.Stop(); |
388 | 389 |
389 return EXIT_SUCCESS; | 390 return EXIT_SUCCESS; |
390 } | 391 } |
391 | 392 |
392 } // namespace crashpad | 393 } // namespace crashpad |
OLD | NEW |