OLD | NEW |
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 #include "chrome/browser/crash_handler_host_linux.h" | 5 #include "chrome/browser/crash_handler_host_linux.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <sys/socket.h> | 9 #include <sys/socket.h> |
10 #include <sys/syscall.h> | 10 #include <sys/syscall.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/eintr_wrapper.h" | |
16 #include "base/file_path.h" | 15 #include "base/file_path.h" |
17 #include "base/format_macros.h" | 16 #include "base/format_macros.h" |
18 #include "base/linux_util.h" | 17 #include "base/linux_util.h" |
19 #include "base/logging.h" | 18 #include "base/logging.h" |
20 #include "base/memory/singleton.h" | 19 #include "base/memory/singleton.h" |
21 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
22 #include "base/path_service.h" | 21 #include "base/path_service.h" |
| 22 #include "base/posix/eintr_wrapper.h" |
23 #include "base/rand_util.h" | 23 #include "base/rand_util.h" |
24 #include "base/string_util.h" | 24 #include "base/string_util.h" |
25 #include "base/stringprintf.h" | 25 #include "base/stringprintf.h" |
26 #include "base/threading/thread.h" | 26 #include "base/threading/thread.h" |
27 #include "breakpad/src/client/linux/handler/exception_handler.h" | 27 #include "breakpad/src/client/linux/handler/exception_handler.h" |
28 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h" | 28 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h" |
29 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h" | 29 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h" |
30 #include "chrome/app/breakpad_linux.h" | 30 #include "chrome/app/breakpad_linux.h" |
31 #include "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
32 #include "chrome/common/env_vars.h" | 32 #include "chrome/common/env_vars.h" |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 } | 527 } |
528 | 528 |
529 void RendererCrashHandlerHostLinux::SetProcessType() { | 529 void RendererCrashHandlerHostLinux::SetProcessType() { |
530 process_type_ = "renderer"; | 530 process_type_ = "renderer"; |
531 } | 531 } |
532 | 532 |
533 // static | 533 // static |
534 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { | 534 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { |
535 return Singleton<RendererCrashHandlerHostLinux>::get(); | 535 return Singleton<RendererCrashHandlerHostLinux>::get(); |
536 } | 536 } |
OLD | NEW |