| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <sys/types.h> | 11 #include <sys/types.h> |
| 12 #include <unistd.h> | 12 #include <unistd.h> |
| 13 | 13 |
| 14 #include "base/eintr_wrapper.h" | 14 #include "base/eintr_wrapper.h" |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "base/format_macros.h" | 16 #include "base/format_macros.h" |
| 17 #include "base/linux_util.h" | 17 #include "base/linux_util.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
| 20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 21 #include "base/rand_util.h" | 21 #include "base/rand_util.h" |
| 22 #include "base/singleton.h" | 22 #include "base/singleton.h" |
| 23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
| 24 #include "base/task.h" | 24 #include "base/task.h" |
| 25 #include "base/thread.h" | 25 #include "base/threading/thread.h" |
| 26 #include "breakpad/src/client/linux/handler/exception_handler.h" | 26 #include "breakpad/src/client/linux/handler/exception_handler.h" |
| 27 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h" | 27 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h" |
| 28 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h" | 28 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h" |
| 29 #include "chrome/app/breakpad_linux.h" | 29 #include "chrome/app/breakpad_linux.h" |
| 30 #include "chrome/browser/browser_thread.h" | 30 #include "chrome/browser/browser_thread.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" |
| 33 | 33 |
| 34 using google_breakpad::ExceptionHandler; | 34 using google_breakpad::ExceptionHandler; |
| 35 | 35 |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 378 } |
| 379 | 379 |
| 380 void RendererCrashHandlerHostLinux::SetProcessType() { | 380 void RendererCrashHandlerHostLinux::SetProcessType() { |
| 381 process_type_ = "renderer"; | 381 process_type_ = "renderer"; |
| 382 } | 382 } |
| 383 | 383 |
| 384 // static | 384 // static |
| 385 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { | 385 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { |
| 386 return Singleton<RendererCrashHandlerHostLinux>::get(); | 386 return Singleton<RendererCrashHandlerHostLinux>::get(); |
| 387 } | 387 } |
| OLD | NEW |