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 CHROME_BROWSER_GPU_GPU_FEATURE_CHECKER_H_ | 5 #ifndef CHROME_BROWSER_GPU_GPU_FEATURE_CHECKER_H_ |
6 #define CHROME_BROWSER_GPU_GPU_FEATURE_CHECKER_H_ | 6 #define CHROME_BROWSER_GPU_GPU_FEATURE_CHECKER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "content/public/browser/gpu_data_manager_observer.h" | 11 #include "content/public/browser/gpu_data_manager_observer.h" |
11 #include "gpu/config/gpu_feature_type.h" | 12 #include "gpu/config/gpu_feature_type.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class GpuDataManager; | 15 class GpuDataManager; |
15 } // namespace content | 16 } // namespace content |
16 | 17 |
17 class GPUFeatureChecker : public base::RefCountedThreadSafe<GPUFeatureChecker>, | 18 class GPUFeatureChecker : public base::RefCountedThreadSafe<GPUFeatureChecker>, |
18 public content::GpuDataManagerObserver { | 19 public content::GpuDataManagerObserver { |
(...skipping 16 matching lines...) Expand all Loading... |
35 | 36 |
36 ~GPUFeatureChecker() override; | 37 ~GPUFeatureChecker() override; |
37 | 38 |
38 gpu::GpuFeatureType feature_; | 39 gpu::GpuFeatureType feature_; |
39 FeatureAvailableCallback callback_; | 40 FeatureAvailableCallback callback_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(GPUFeatureChecker); | 42 DISALLOW_COPY_AND_ASSIGN(GPUFeatureChecker); |
42 }; | 43 }; |
43 | 44 |
44 #endif // CHROME_BROWSER_GPU_GPU_FEATURE_CHECKER_H_ | 45 #endif // CHROME_BROWSER_GPU_GPU_FEATURE_CHECKER_H_ |
OLD | NEW |