| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "base/task.h" | 24 #include "base/task.h" |
| 25 #include "base/threading/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/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
| 31 #include "chrome/common/env_vars.h" | 31 #include "chrome/common/env_vars.h" |
| 32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
| 33 | 33 |
| 34 using content::BrowserThread; |
| 34 using google_breakpad::ExceptionHandler; | 35 using google_breakpad::ExceptionHandler; |
| 35 | 36 |
| 36 namespace { | 37 namespace { |
| 37 | 38 |
| 38 // The length of the control message: | 39 // The length of the control message: |
| 39 const unsigned kControlMsgSize = | 40 const unsigned kControlMsgSize = |
| 40 CMSG_SPACE(2*sizeof(int)) + CMSG_SPACE(sizeof(struct ucred)); | 41 CMSG_SPACE(2*sizeof(int)) + CMSG_SPACE(sizeof(struct ucred)); |
| 41 // The length of the regular payload: | 42 // The length of the regular payload: |
| 42 const unsigned kCrashContextSize = sizeof(ExceptionHandler::CrashContext); | 43 const unsigned kCrashContextSize = sizeof(ExceptionHandler::CrashContext); |
| 43 | 44 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 } | 467 } |
| 467 | 468 |
| 468 void RendererCrashHandlerHostLinux::SetProcessType() { | 469 void RendererCrashHandlerHostLinux::SetProcessType() { |
| 469 process_type_ = "renderer"; | 470 process_type_ = "renderer"; |
| 470 } | 471 } |
| 471 | 472 |
| 472 // static | 473 // static |
| 473 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { | 474 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { |
| 474 return Singleton<RendererCrashHandlerHostLinux>::get(); | 475 return Singleton<RendererCrashHandlerHostLinux>::get(); |
| 475 } | 476 } |
| OLD | NEW |