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_COMMON_GPU_GPU_WATCHDOG_H_ | 5 #ifndef GPU_IPC_SERVICE_GPU_WATCHDOG_H_ |
6 #define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ | 6 #define GPU_IPC_SERVICE_GPU_WATCHDOG_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 namespace content { | 10 namespace gpu { |
11 | 11 |
12 // Interface for objects that monitor the a GPUProcessor's progress. The | 12 // Interface for objects that monitor the a GPUProcessor's progress. The |
13 // GPUProcessor will regularly invoke CheckArmed. | 13 // GPUProcessor will regularly invoke CheckArmed. |
14 class GpuWatchdog { | 14 class GpuWatchdog { |
15 public: | 15 public: |
16 virtual void CheckArmed() = 0; | 16 virtual void CheckArmed() = 0; |
17 | 17 |
18 protected: | 18 protected: |
19 GpuWatchdog() {} | 19 GpuWatchdog() {} |
20 virtual ~GpuWatchdog() {}; | 20 virtual ~GpuWatchdog() {}; |
21 | 21 |
22 private: | 22 private: |
23 DISALLOW_COPY_AND_ASSIGN(GpuWatchdog); | 23 DISALLOW_COPY_AND_ASSIGN(GpuWatchdog); |
24 }; | 24 }; |
25 | 25 |
26 } // namespace content | 26 } // namespace gpu |
27 | 27 |
28 #endif // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ | 28 #endif // GPU_IPC_SERVICE_GPU_WATCHDOG_H_ |
OLD | NEW |