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 #ifndef CHROME_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ | 5 #ifndef CHROME_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ |
6 #define CHROME_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ | 6 #define CHROME_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 #if defined(USE_LINUX_BREAKPAD) | 73 #if defined(USE_LINUX_BREAKPAD) |
74 MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_; | 74 MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_; |
75 scoped_ptr<base::Thread> uploader_thread_; | 75 scoped_ptr<base::Thread> uploader_thread_; |
76 bool shutting_down_; | 76 bool shutting_down_; |
77 #endif | 77 #endif |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(CrashHandlerHostLinux); | 79 DISALLOW_COPY_AND_ASSIGN(CrashHandlerHostLinux); |
80 }; | 80 }; |
81 | 81 |
| 82 class GpuCrashHandlerHostLinux : public CrashHandlerHostLinux { |
| 83 public: |
| 84 // Returns the singleton instance. |
| 85 static GpuCrashHandlerHostLinux* GetInstance(); |
| 86 |
| 87 private: |
| 88 friend struct DefaultSingletonTraits<GpuCrashHandlerHostLinux>; |
| 89 GpuCrashHandlerHostLinux(); |
| 90 virtual ~GpuCrashHandlerHostLinux(); |
| 91 |
| 92 #if defined(USE_LINUX_BREAKPAD) |
| 93 virtual void SetProcessType(); |
| 94 #endif |
| 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(GpuCrashHandlerHostLinux); |
| 97 }; |
| 98 |
82 class PluginCrashHandlerHostLinux : public CrashHandlerHostLinux { | 99 class PluginCrashHandlerHostLinux : public CrashHandlerHostLinux { |
83 public: | 100 public: |
84 // Returns the singleton instance. | 101 // Returns the singleton instance. |
85 static PluginCrashHandlerHostLinux* GetInstance(); | 102 static PluginCrashHandlerHostLinux* GetInstance(); |
86 | 103 |
87 private: | 104 private: |
88 friend struct DefaultSingletonTraits<PluginCrashHandlerHostLinux>; | 105 friend struct DefaultSingletonTraits<PluginCrashHandlerHostLinux>; |
89 PluginCrashHandlerHostLinux(); | 106 PluginCrashHandlerHostLinux(); |
90 virtual ~PluginCrashHandlerHostLinux(); | 107 virtual ~PluginCrashHandlerHostLinux(); |
91 | 108 |
(...skipping 15 matching lines...) Expand all Loading... |
107 virtual ~RendererCrashHandlerHostLinux(); | 124 virtual ~RendererCrashHandlerHostLinux(); |
108 | 125 |
109 #if defined(USE_LINUX_BREAKPAD) | 126 #if defined(USE_LINUX_BREAKPAD) |
110 virtual void SetProcessType(); | 127 virtual void SetProcessType(); |
111 #endif | 128 #endif |
112 | 129 |
113 DISALLOW_COPY_AND_ASSIGN(RendererCrashHandlerHostLinux); | 130 DISALLOW_COPY_AND_ASSIGN(RendererCrashHandlerHostLinux); |
114 }; | 131 }; |
115 | 132 |
116 #endif // CHROME_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ | 133 #endif // CHROME_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ |
OLD | NEW |