| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ |
| 6 #define CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ | 6 #define CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool suspended_; | 120 bool suspended_; |
| 121 | 121 |
| 122 // The time the last OnSuspend and OnResume was called. | 122 // The time the last OnSuspend and OnResume was called. |
| 123 base::Time suspend_time_; | 123 base::Time suspend_time_; |
| 124 base::Time resume_time_; | 124 base::Time resume_time_; |
| 125 | 125 |
| 126 // This is the time the last check was sent. | 126 // This is the time the last check was sent. |
| 127 base::Time check_time_; | 127 base::Time check_time_; |
| 128 base::TimeTicks check_timeticks_; | 128 base::TimeTicks check_timeticks_; |
| 129 | 129 |
| 130 // This specifies whether to use writing to a temp file as an additional step |
| 131 // before crashing the process. That is used to allow the I/O queue to clear |
| 132 // and give the watched thread more time to unblock in case it is blocked on |
| 133 // a hard fault or other I/O. |
| 134 bool use_temp_file_for_io_checking_; |
| 135 base::TimeDelta io_check_duration_; |
| 136 |
| 130 #if defined(OS_CHROMEOS) | 137 #if defined(OS_CHROMEOS) |
| 131 FILE* tty_file_; | 138 FILE* tty_file_; |
| 132 #endif | 139 #endif |
| 133 | 140 |
| 134 #if defined(USE_X11) | 141 #if defined(USE_X11) |
| 135 XDisplay* display_; | 142 XDisplay* display_; |
| 136 gfx::AcceleratedWidget window_; | 143 gfx::AcceleratedWidget window_; |
| 137 XAtom atom_; | 144 XAtom atom_; |
| 138 #endif | 145 #endif |
| 139 | 146 |
| 140 base::WeakPtrFactory<GpuWatchdogThread> weak_factory_; | 147 base::WeakPtrFactory<GpuWatchdogThread> weak_factory_; |
| 141 | 148 |
| 142 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread); | 149 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread); |
| 143 }; | 150 }; |
| 144 | 151 |
| 145 } // namespace content | 152 } // namespace content |
| 146 | 153 |
| 147 #endif // CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ | 154 #endif // CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ |
| OLD | NEW |