| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 GPU_CONFIG_GPU_BLACKLIST_H_ | 5 #ifndef GPU_CONFIG_GPU_BLACKLIST_H_ |
| 6 #define GPU_CONFIG_GPU_BLACKLIST_H_ | 6 #define GPU_CONFIG_GPU_BLACKLIST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "gpu/config/gpu_control_list.h" | 11 #include "gpu/config/gpu_control_list.h" |
| 12 | 12 |
| 13 namespace gpu { | 13 namespace gpu { |
| 14 | 14 |
| 15 class GPU_EXPORT GpuBlacklist : public GpuControlList { | 15 class GPU_EXPORT GpuBlacklist : public GpuControlList { |
| 16 public: | 16 public: |
| 17 ~GpuBlacklist() override; | 17 ~GpuBlacklist() override; |
| 18 | 18 |
| 19 static GpuBlacklist* Create(); | 19 static std::unique_ptr<GpuBlacklist> Create(); |
| 20 static std::unique_ptr<GpuBlacklist> Create(const GpuControlListData& data); |
| 20 | 21 |
| 21 private: | 22 private: |
| 22 GpuBlacklist(); | 23 explicit GpuBlacklist(const GpuControlListData& data); |
| 23 | 24 |
| 24 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); | 25 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); |
| 25 }; | 26 }; |
| 26 | 27 |
| 27 } // namespace gpu | 28 } // namespace gpu |
| 28 | 29 |
| 29 #endif // GPU_CONFIG_GPU_BLACKLIST_H_ | 30 #endif // GPU_CONFIG_GPU_BLACKLIST_H_ |
| OLD | NEW |