| 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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/power_monitor/power_observer.h" | 12 #include "base/power_monitor/power_observer.h" |
| 12 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "build/build_config.h" |
| 14 #include "content/common/gpu/gpu_watchdog.h" | 16 #include "content/common/gpu/gpu_watchdog.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 16 | 18 |
| 17 #if defined(USE_X11) | 19 #if defined(USE_X11) |
| 18 extern "C" { | 20 extern "C" { |
| 19 #include <X11/Xlib.h> | 21 #include <X11/Xlib.h> |
| 20 #include <X11/Xatom.h> | 22 #include <X11/Xatom.h> |
| 21 } | 23 } |
| 22 #include <sys/poll.h> | 24 #include <sys/poll.h> |
| 23 #include "ui/base/x/x11_util.h" | 25 #include "ui/base/x/x11_util.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 #endif | 119 #endif |
| 118 | 120 |
| 119 base::WeakPtrFactory<GpuWatchdogThread> weak_factory_; | 121 base::WeakPtrFactory<GpuWatchdogThread> weak_factory_; |
| 120 | 122 |
| 121 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread); | 123 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread); |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace content | 126 } // namespace content |
| 125 | 127 |
| 126 #endif // CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ | 128 #endif // CONTENT_GPU_GPU_WATCHDOG_THREAD_H_ |
| OLD | NEW |