| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GPU_GPU_WATCHDOG_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ |
| 6 #define CHROME_GPU_GPU_WATCHDOG_THREAD_H_ | 6 #define CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ |
| 7 | 7 |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 | 14 |
| 15 // A thread that intermitently sends tasks to a group of watched message loops | 15 // A thread that intermitently sends tasks to a group of watched message loops |
| 16 // and deliberately crashes if one of them does not respond after a timeout. | 16 // and deliberately crashes if one of them does not respond after a timeout. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 base::Time arm_absolute_time_; | 66 base::Time arm_absolute_time_; |
| 67 | 67 |
| 68 typedef ScopedRunnableMethodFactory<GpuWatchdogThread> MethodFactory; | 68 typedef ScopedRunnableMethodFactory<GpuWatchdogThread> MethodFactory; |
| 69 scoped_ptr<MethodFactory> method_factory_; | 69 scoped_ptr<MethodFactory> method_factory_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread); | 71 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CHROME_GPU_GPU_WATCHDOG_THREAD_H_ | 74 #endif // CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ |
| OLD | NEW |