| 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> |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 InitCrashUploaderThread(); | 357 InitCrashUploaderThread(); |
| 358 } | 358 } |
| 359 | 359 |
| 360 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() { | 360 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() { |
| 361 } | 361 } |
| 362 | 362 |
| 363 void PluginCrashHandlerHostLinux::SetProcessType() { | 363 void PluginCrashHandlerHostLinux::SetProcessType() { |
| 364 process_type_ = "plugin"; | 364 process_type_ = "plugin"; |
| 365 } | 365 } |
| 366 | 366 |
| 367 // static |
| 368 PluginCrashHandlerHostLinux* PluginCrashHandlerHostLinux::GetInstance() { |
| 369 return Singleton<PluginCrashHandlerHostLinux>::get(); |
| 370 } |
| 371 |
| 367 RendererCrashHandlerHostLinux::RendererCrashHandlerHostLinux() { | 372 RendererCrashHandlerHostLinux::RendererCrashHandlerHostLinux() { |
| 368 InitCrashUploaderThread(); | 373 InitCrashUploaderThread(); |
| 369 } | 374 } |
| 370 | 375 |
| 371 RendererCrashHandlerHostLinux::~RendererCrashHandlerHostLinux() { | 376 RendererCrashHandlerHostLinux::~RendererCrashHandlerHostLinux() { |
| 372 } | 377 } |
| 373 | 378 |
| 374 void RendererCrashHandlerHostLinux::SetProcessType() { | 379 void RendererCrashHandlerHostLinux::SetProcessType() { |
| 375 process_type_ = "renderer"; | 380 process_type_ = "renderer"; |
| 376 } | 381 } |
| 382 |
| 383 // static |
| 384 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { |
| 385 return Singleton<RendererCrashHandlerHostLinux>::get(); |
| 386 } |
| OLD | NEW |