| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // If we are quitting and there are crash dumps in the queue, turn them into | 347 // If we are quitting and there are crash dumps in the queue, turn them into |
| 348 // no-ops. | 348 // no-ops. |
| 349 shutting_down_ = true; | 349 shutting_down_ = true; |
| 350 uploader_thread_->Stop(); | 350 uploader_thread_->Stop(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 bool CrashHandlerHostLinux::IsShuttingDown() const { | 353 bool CrashHandlerHostLinux::IsShuttingDown() const { |
| 354 return shutting_down_; | 354 return shutting_down_; |
| 355 } | 355 } |
| 356 | 356 |
| 357 GpuCrashHandlerHostLinux::GpuCrashHandlerHostLinux() { |
| 358 InitCrashUploaderThread(); |
| 359 } |
| 360 |
| 361 GpuCrashHandlerHostLinux::~GpuCrashHandlerHostLinux() { |
| 362 } |
| 363 |
| 364 void GpuCrashHandlerHostLinux::SetProcessType() { |
| 365 process_type_ = "gpu-process"; |
| 366 } |
| 367 |
| 368 // static |
| 369 GpuCrashHandlerHostLinux* GpuCrashHandlerHostLinux::GetInstance() { |
| 370 return Singleton<GpuCrashHandlerHostLinux>::get(); |
| 371 } |
| 372 |
| 357 PluginCrashHandlerHostLinux::PluginCrashHandlerHostLinux() { | 373 PluginCrashHandlerHostLinux::PluginCrashHandlerHostLinux() { |
| 358 InitCrashUploaderThread(); | 374 InitCrashUploaderThread(); |
| 359 } | 375 } |
| 360 | 376 |
| 361 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() { | 377 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() { |
| 362 } | 378 } |
| 363 | 379 |
| 364 void PluginCrashHandlerHostLinux::SetProcessType() { | 380 void PluginCrashHandlerHostLinux::SetProcessType() { |
| 365 process_type_ = "plugin"; | 381 process_type_ = "plugin"; |
| 366 } | 382 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 378 } | 394 } |
| 379 | 395 |
| 380 void RendererCrashHandlerHostLinux::SetProcessType() { | 396 void RendererCrashHandlerHostLinux::SetProcessType() { |
| 381 process_type_ = "renderer"; | 397 process_type_ = "renderer"; |
| 382 } | 398 } |
| 383 | 399 |
| 384 // static | 400 // static |
| 385 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { | 401 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { |
| 386 return Singleton<RendererCrashHandlerHostLinux>::get(); | 402 return Singleton<RendererCrashHandlerHostLinux>::get(); |
| 387 } | 403 } |
| OLD | NEW |