OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "components/crash/content/browser/crash_handler_host_linux.h" | 5 #include "components/crash/content/browser/crash_handler_host_linux.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 #include <stdlib.h> | 10 #include <stdlib.h> |
10 #include <sys/socket.h> | 11 #include <sys/socket.h> |
11 #include <sys/syscall.h> | 12 #include <sys/syscall.h> |
12 #include <unistd.h> | 13 #include <unistd.h> |
13 | 14 |
14 #include "base/bind.h" | 15 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 16 #include "base/bind_helpers.h" |
16 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
17 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
18 #include "base/files/scoped_file.h" | 19 #include "base/files/scoped_file.h" |
19 #include "base/format_macros.h" | 20 #include "base/format_macros.h" |
20 #include "base/linux_util.h" | 21 #include "base/linux_util.h" |
21 #include "base/location.h" | 22 #include "base/location.h" |
22 #include "base/logging.h" | 23 #include "base/logging.h" |
23 #include "base/path_service.h" | 24 #include "base/path_service.h" |
24 #include "base/posix/eintr_wrapper.h" | 25 #include "base/posix/eintr_wrapper.h" |
25 #include "base/rand_util.h" | 26 #include "base/rand_util.h" |
26 #include "base/single_thread_task_runner.h" | 27 #include "base/single_thread_task_runner.h" |
27 #include "base/strings/string_util.h" | 28 #include "base/strings/string_util.h" |
28 #include "base/strings/stringprintf.h" | 29 #include "base/strings/stringprintf.h" |
29 #include "base/threading/thread.h" | 30 #include "base/threading/thread.h" |
30 #include "breakpad/src/client/linux/handler/exception_handler.h" | 31 #include "breakpad/src/client/linux/handler/exception_handler.h" |
31 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h" | 32 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h" |
32 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h" | 33 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h" |
| 34 #include "build/build_config.h" |
33 #include "components/crash/content/app/breakpad_linux_impl.h" | 35 #include "components/crash/content/app/breakpad_linux_impl.h" |
34 #include "content/public/browser/browser_thread.h" | 36 #include "content/public/browser/browser_thread.h" |
35 | 37 |
36 #if defined(OS_ANDROID) && !defined(__LP64__) | 38 #if defined(OS_ANDROID) && !defined(__LP64__) |
37 #include <sys/linux-syscalls.h> | 39 #include <sys/linux-syscalls.h> |
38 | 40 |
39 #define SYS_read __NR_read | 41 #define SYS_read __NR_read |
40 #endif | 42 #endif |
41 | 43 |
42 using content::BrowserThread; | 44 using content::BrowserThread; |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // no-ops. | 431 // no-ops. |
430 shutting_down_ = true; | 432 shutting_down_ = true; |
431 uploader_thread_->Stop(); | 433 uploader_thread_->Stop(); |
432 } | 434 } |
433 | 435 |
434 bool CrashHandlerHostLinux::IsShuttingDown() const { | 436 bool CrashHandlerHostLinux::IsShuttingDown() const { |
435 return shutting_down_; | 437 return shutting_down_; |
436 } | 438 } |
437 | 439 |
438 } // namespace breakpad | 440 } // namespace breakpad |
OLD | NEW |