OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ |
6 #define CHROME_BROWSER_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ | 6 #define CHROME_BROWSER_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/web_resource/web_resource_service.h" | 9 #include "chrome/browser/web_resource/web_resource_service.h" |
10 | 10 |
11 class GpuBlacklistUpdater : public WebResourceService { | 11 class GpuBlacklistUpdater : public WebResourceService { |
12 public: | 12 public: |
13 GpuBlacklistUpdater(); | 13 GpuBlacklistUpdater(); |
14 | 14 |
15 // URL of the up-to-date gpu_blacklist.json file. | 15 // URL of the up-to-date gpu_blacklist.json file. |
16 static const char* kDefaultGpuBlacklistURL; | 16 static const char* kDefaultGpuBlacklistURL; |
17 | 17 |
18 private: | 18 private: |
19 virtual ~GpuBlacklistUpdater(); | 19 virtual ~GpuBlacklistUpdater(); |
20 | 20 |
21 virtual void Unpack(const DictionaryValue& parsed_json); | 21 virtual void Unpack(const base::DictionaryValue& parsed_json); |
22 | 22 |
23 void InitializeGpuBlacklist(); | 23 void InitializeGpuBlacklist(); |
24 | 24 |
25 void UpdateGpuBlacklist( | 25 void UpdateGpuBlacklist( |
26 const DictionaryValue& gpu_blacklist_cache, bool preliminary); | 26 const base::DictionaryValue& gpu_blacklist_cache, bool preliminary); |
27 | 27 |
28 DISALLOW_COPY_AND_ASSIGN(GpuBlacklistUpdater); | 28 DISALLOW_COPY_AND_ASSIGN(GpuBlacklistUpdater); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ | 31 #endif // CHROME_BROWSER_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ |
32 | |
OLD | NEW |