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