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_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
10 | 9 |
11 namespace content { | 10 namespace content { |
12 | 11 |
13 // Observers can register themselves via GpuDataManager::AddObserver, and | 12 // Observers can register themselves via GpuDataManager::AddObserver, and |
14 // can un-register with GpuDataManager::RemoveObserver. | 13 // can un-register with GpuDataManager::RemoveObserver. |
15 class GpuDataManagerObserver { | 14 class GpuDataManagerObserver { |
16 public: | 15 public: |
17 // Called for any observers whenever there is a GPU info update. | 16 // Called for any observers whenever there is a GPU info update. |
18 virtual void OnGpuInfoUpdate() = 0; | 17 virtual void OnGpuInfoUpdate() = 0; |
19 | 18 |
20 protected: | 19 protected: |
21 virtual ~GpuDataManagerObserver() {} | 20 virtual ~GpuDataManagerObserver() {} |
22 }; | 21 }; |
23 | 22 |
24 }; // namespace content | 23 }; // namespace content |
25 | 24 |
26 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ | 25 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ |
OLD | NEW |