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 // This is a stub file which is compiled in when we are building without | 5 // This is a stub file which is compiled in when we are building without |
6 // breakpad support. | 6 // breakpad support. |
7 | 7 |
8 #include "chrome/browser/crash_handler_host_linux.h" | 8 #include "chrome/browser/crash_handler_host_linux.h" |
9 | 9 |
| 10 #include "base/singleton.h" |
| 11 |
10 CrashHandlerHostLinux::CrashHandlerHostLinux() | 12 CrashHandlerHostLinux::CrashHandlerHostLinux() |
11 : process_socket_(-1), | 13 : process_socket_(-1), |
12 browser_socket_(-1) { | 14 browser_socket_(-1) { |
13 } | 15 } |
14 | 16 |
15 CrashHandlerHostLinux::~CrashHandlerHostLinux() { | 17 CrashHandlerHostLinux::~CrashHandlerHostLinux() { |
16 } | 18 } |
17 | 19 |
18 void CrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) { | 20 void CrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) { |
19 } | 21 } |
20 | 22 |
21 void CrashHandlerHostLinux::OnFileCanWriteWithoutBlocking(int fd) { | 23 void CrashHandlerHostLinux::OnFileCanWriteWithoutBlocking(int fd) { |
22 } | 24 } |
23 | 25 |
24 void CrashHandlerHostLinux::WillDestroyCurrentMessageLoop() { | 26 void CrashHandlerHostLinux::WillDestroyCurrentMessageLoop() { |
25 } | 27 } |
26 | 28 |
27 PluginCrashHandlerHostLinux::PluginCrashHandlerHostLinux() { | 29 PluginCrashHandlerHostLinux::PluginCrashHandlerHostLinux() { |
28 } | 30 } |
29 | 31 |
30 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() { | 32 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() { |
31 } | 33 } |
32 | 34 |
| 35 // static |
| 36 PluginCrashHandlerHostLinux* PluginCrashHandlerHostLinux::GetInstance() { |
| 37 return Singleton<PluginCrashHandlerHostLinux>::get(); |
| 38 } |
| 39 |
33 RendererCrashHandlerHostLinux::RendererCrashHandlerHostLinux() { | 40 RendererCrashHandlerHostLinux::RendererCrashHandlerHostLinux() { |
34 } | 41 } |
35 | 42 |
36 RendererCrashHandlerHostLinux::~RendererCrashHandlerHostLinux() { | 43 RendererCrashHandlerHostLinux::~RendererCrashHandlerHostLinux() { |
37 } | 44 } |
| 45 |
| 46 // static |
| 47 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { |
| 48 return Singleton<RendererCrashHandlerHostLinux>::get(); |
| 49 } |
OLD | NEW |